From cc6559c2c4a4a1eeb1af9838a467f1b51e026447 Mon Sep 17 00:00:00 2001 From: Marcel Schramm Date: Fri, 12 Apr 2024 15:18:17 +0200 Subject: [PATCH] Build prereleases --- .github/workflows/release.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 88833bb..17a7028 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -21,10 +21,22 @@ jobs: workflow: build.yml name: spoon.exe + - name: Create pre-release + uses: softprops/action-gh-release@v1 + if: ${{ endsWith(github.ref, 'pre') }} + with: + name: ${{ github.event.workflow_run.head_branch }} + tag_name: ${{ github.event.workflow_run.head_branch }} + prerelease: true + files: | + spoon.exe + - name: Create release uses: softprops/action-gh-release@v1 + if: ${{ ! endsWith(github.ref, 'pre') }} with: name: ${{ github.event.workflow_run.head_branch }} tag_name: ${{ github.event.workflow_run.head_branch }} + prerelease: false files: | spoon.exe