diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index b37a313..793d6b2 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -24,8 +24,21 @@ jobs: run: cargo test - name: Build run: cargo build --release - - name: Upload binary - uses: actions/upload-artifact@v4.3.1 + - uses: actions/upload-artifact@v4.3.1 with: name: bpftop - path: target/release/bpftop \ No newline at end of file + 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/checkout@v4.1.1 + - name: Create Release and Upload Asset + uses: ncipollo/release-action@v1.14.0 + with: + artifacts: "target/release/bpftop" + draft: true \ No newline at end of file