Skip to content

Commit aa12104

Browse files
committed
Correctly upload and download artifacts for releases
Signed-off-by: Jose Fernandez <[email protected]>
1 parent dda2754 commit aa12104

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/rust.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,15 @@ jobs:
5656

5757
- name: Build
5858
run: cross build --target ${{ matrix.target }} --release
59+
60+
- name: Rename binary
61+
run: mv target/${{ matrix.target }}/release/bpftop target/${{ matrix.target }}/release/bpftop-${{ matrix.target }}
5962

6063
- name: Upload artifact
6164
uses: actions/[email protected]
6265
with:
6366
name: bpftop-${{ matrix.target }}
64-
path: target/${{ matrix.target }}/release/bpftop
67+
path: target/${{ matrix.target }}/release/bpftop-${{ matrix.target }}
6568
if-no-files-found: error
6669

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

0 commit comments

Comments
 (0)