Skip to content

Commit

Permalink
don't create release when pushing to main
Browse files Browse the repository at this point in the history
  • Loading branch information
kolja committed Dec 22, 2024
1 parent e9b54b4 commit 14f778a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
Expand All @@ -37,6 +38,7 @@ jobs:
uses: coverallsapp/[email protected]

create-release:
if: startsWith(github.ref, 'refs/tags/')
needs: run-tests
runs-on: ubuntu-latest
steps:
Expand All @@ -46,6 +48,7 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}

upload-assets:
if: startsWith(github.ref, 'refs/tags/')
needs: create-release
strategy:
matrix:
Expand Down

0 comments on commit 14f778a

Please sign in to comment.