Skip to content

Commit

Permalink
Update GitHub Actions workflow to create a release and upload asset
Browse files Browse the repository at this point in the history
  • Loading branch information
jfernandez committed Feb 15, 2024
1 parent c5f9d59 commit 553fa6f
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,21 @@ jobs:
run: cargo test
- name: Build
run: cargo build --release
- name: Upload binary
uses: actions/[email protected]
- uses: actions/[email protected]
with:
name: bpftop
path: target/release/bpftop
path: target/release/bpftop

create_release:
needs: build_and_test
runs-on: ubuntu-latest
permissions:
contents: write
if: startsWith(github.ref, 'refs/tags/v')
steps:
- uses: actions/[email protected]
- name: Create Release and Upload Asset
uses: ncipollo/[email protected]
with:
artifacts: "target/release/bpftop"
draft: true

0 comments on commit 553fa6f

Please sign in to comment.