From fd33c31f8a4a981ca662f421093f7e84c1fbed8e Mon Sep 17 00:00:00 2001 From: Max Fierke Date: Sun, 28 Apr 2024 15:20:10 -0500 Subject: [PATCH] Avoid cluttering releases w/ dev & prerelease builds --- .github/workflows/release.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6f37756..3dd9dd9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 @@ -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