Skip to content

Commit

Permalink
Correctly upload and download artifacts for releases
Browse files Browse the repository at this point in the history
Signed-off-by: Jose Fernandez <[email protected]>
  • Loading branch information
jfernandez committed Jul 28, 2024
1 parent dda2754 commit aa12104
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,15 @@ jobs:

- name: Build
run: cross build --target ${{ matrix.target }} --release

- name: Rename binary
run: mv target/${{ matrix.target }}/release/bpftop target/${{ matrix.target }}/release/bpftop-${{ matrix.target }}

- name: Upload artifact
uses: actions/[email protected]
with:
name: bpftop-${{ matrix.target }}
path: target/${{ matrix.target }}/release/bpftop
path: target/${{ matrix.target }}/release/bpftop-${{ matrix.target }}
if-no-files-found: error

create_release:
Expand All @@ -81,7 +84,7 @@ jobs:
- name: Create Release and Upload Artifacts
uses: ncipollo/[email protected]
with:
artifacts: ${{ steps.download_artifacts.outputs.download-path }}/bpftop-*
artifacts: artifacts/bpftop-*
draft: true
allowUpdates: true
updateOnlyUnreleased: true

0 comments on commit aa12104

Please sign in to comment.