From 910f51a250e1cb3cd332fdc2fff26aafd65988cd Mon Sep 17 00:00:00 2001 From: piyoppi Date: Thu, 31 Oct 2024 00:15:46 +0900 Subject: [PATCH] Prerelease workflow --- .github/workflows/release.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 64988a9..925a92b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,6 +6,7 @@ on: - main tags: - 'v*.*.*' + jobs: build: strategy: @@ -104,9 +105,17 @@ jobs: prerelease: true files: chiritori-* - - name: Create Release(Release) + - name: Create Release (Release) uses: softprops/action-gh-release@v1 - if: startsWith(github.ref, 'refs/tags/v') + if: startsWith(github.ref, 'refs/tags/v') && !contains(github.ref, '-alpha') && !contains(github.ref, '-beta') with: tag_name: ${{ github.ref }} files: chiritori-* + + - name: Create Release (Prerelease) + uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/v') && (contains(github.ref, '-alpha') || contains(github.ref, '-beta')) + with: + tag_name: ${{ github.ref }} + files: chiritori-* + prerelease: true