Skip to content

Commit

Permalink
only build on release
Browse files Browse the repository at this point in the history
  • Loading branch information
zacharyburnett committed Aug 15, 2023
1 parent 09cad4f commit 832664d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ jobs:
# - uses: actions-rust-lang/setup-rust-toolchain@v1
# - run: cargo test
build:
if: (github.event_name == 'release' && github.event.action == 'published')
runs-on: ${{ matrix.runs-on }}
strategy:
fail-fast: false
Expand All @@ -91,8 +92,7 @@ jobs:
with:
name: packetraven-${{ runner.os }}
path: target/release/packetraven*
- if: (github.event_name == 'release' && github.event.action == 'published')
uses: svenstaro/upload-release-action@v2
- uses: svenstaro/upload-release-action@v2
with:
asset_name: packetraven_${{ runner.os }}${{ runner.os == 'Windows' && '.exe' || '' }}
file: target/release/packetraven${{ runner.os == 'Windows' && '.exe' || '' }}
Expand Down

0 comments on commit 832664d

Please sign in to comment.