From fe807928737f4c28e440fd6d75d6a0b9d7f6b3c7 Mon Sep 17 00:00:00 2001 From: wucke13 Date: Sun, 26 Feb 2023 00:04:09 +0100 Subject: [PATCH] add proper flagging of prerelease and draft in CI --- .github/workflows/release.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index f2dbcc8d..27d7abc1 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -7,7 +7,7 @@ on: jobs: release: - name: Build ${{ matrix.derivation }} on ${{ matrix.nix-system }} + name: Release for ${{ matrix.nix-system }} runs-on: - nix - ${{ matrix.nix-system }} @@ -24,5 +24,7 @@ jobs: - name: Release uses: softprops/action-gh-release@v1 with: + draft: ${{ contains(github.ref_name, 'rc') }} + prerelease: ${{ contains(github.ref_name, 'alpha') || contains(github.ref_name, 'beta') }} files: | result/*