Skip to content

Commit

Permalink
Avoid cluttering releases w/ dev & prerelease builds
Browse files Browse the repository at this point in the history
  • Loading branch information
maxfierke committed Apr 28, 2024
1 parent e6f0f0e commit fd33c31
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,8 @@ jobs:
release:
needs: [build_linux_amd64, build_linux_aarch64, build_macos_amd64, build_macos_arm64]
runs-on: ubuntu-latest
if: ${{ !startsWith(github.ref, 'refs/tags/v0.0.0') && !contains(github.ref, 'dev') }}

steps:
- name: Determine version
id: version
Expand Down Expand Up @@ -209,7 +211,7 @@ jobs:
with:
token: ${{ secrets.GITHUB_TOKEN }}
draft: false
prerelease: false
prerelease: ${{ contains(github.ref, 'alpha') || contains(github.ref, 'beta') || contains(github.ref, 'pre') || contains(github.ref, 'rc') }}
files: |
dist-linux-aarch64/*.zip
dist-linux-amd64/*.zip
Expand Down

0 comments on commit fd33c31

Please sign in to comment.