-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Correctly upload and download artifacts for releases
Signed-off-by: Jose Fernandez <[email protected]>
- Loading branch information
1 parent
dda2754
commit aa12104
Showing
1 changed file
with
5 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|
@@ -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 |