Skip to content

Commit

Permalink
Extend release action to automatically upload artifacts to release. (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Mpdreamz committed Aug 8, 2023
1 parent 0ad7c67 commit a03fe02
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@ jobs:
.ci/linux/push_docker.sh
env:
TAG_NAME: ${{ github.ref_name }}

- name: Attach Profiler And Startup Hooks
continue-on-error: true #continue for now until we see it working in action
run: |
gh release upload ${{ github.ref_name }} "build/output/ElasticApmAgent_*.zip" "build/output/elastic_apm_profiler_*.zip"
- if: ${{ success() }}
uses: elastic/apm-pipeline-library/.github/actions/slack-message@current
Expand All @@ -76,3 +81,23 @@ jobs:
message: |
:large_yellow_circle: [${{ github.repository }}] Release *${{ github.ref_name }}* could not be published.
Build: (<${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|here>)
release-windows:
runs-on: windows-2022
needs: [ 'release']

steps:
- uses: actions/checkout@v3
- name: Bootstrap Action Workspace
uses: ./.github/workflows/bootstrap
with:
rust: 'true'

- name: Build profiler
run: ./build.bat profiler-zip

- name: Attach Profiler
continue-on-error: true #continue for now until we see it working in action
run: |
gh release upload ${{ github.ref_name }} "build/output/elastic_apm_profiler_*.zip"

0 comments on commit a03fe02

Please sign in to comment.