Skip to content

Commit

Permalink
fix CI/CD splitting release and prerelease builds
Browse files Browse the repository at this point in the history
  • Loading branch information
Toyz committed Mar 22, 2024
1 parent 5c20d43 commit c366d19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
target/release/glitch${{ matrix.os == 'windows-latest' && '.exe' || '' }}
release:
if: startsWith(github.ref, 'refs/tags/v') && github.ref == 'refs/heads/main'
if: startsWith(github.ref, 'refs/tags/v')
needs: build
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -81,7 +81,7 @@ jobs:
target/windows.zip
prerelease:
if: ${{ !startsWith(github.ref, 'refs/tags/v') }} && github.ref == 'refs/heads/main'
if: github.ref == 'refs/heads/main'
needs: build
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit c366d19

Please sign in to comment.