Skip to content

Commit

Permalink
Simplify release logic
Browse files Browse the repository at this point in the history
  • Loading branch information
jfernandez committed Feb 15, 2024
1 parent 553fa6f commit 991d04d
Showing 1 changed file with 8 additions and 16 deletions.
24 changes: 8 additions & 16 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@ env:
CARGO_TERM_COLOR: always

jobs:
build_and_test:
build_test_and_release:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/[email protected]
- name: Install dependencies
Expand All @@ -24,21 +26,11 @@ jobs:
run: cargo test
- name: Build
run: cargo build --release
- uses: actions/[email protected]
with:
name: 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
- name: Create Release and Upload Artficat
uses: ncipollo/[email protected]
if: startsWith(github.ref, 'refs/tags/v')
with:
artifacts: "target/release/bpftop"
draft: true
draft: true
allowUpdates: true
updateOnlyUnreleased: true

0 comments on commit 991d04d

Please sign in to comment.