From cd5503728d08ce4e7a90f75b518f6c8389ec4613 Mon Sep 17 00:00:00 2001 From: Gugle Date: Thu, 13 Jun 2024 04:03:14 +0800 Subject: [PATCH] Update release.yml --- .github/workflows/release.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 40a76f1a1..a8b1cb3eb 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,6 +9,7 @@ jobs: env: CI_BUILD: false PR_BUILD: false + VERSION_TYPE: ${{ github.event.release.prerelease && 'alpha' || 'release' }} runs-on: ubuntu-latest steps: - name: checkout @@ -76,7 +77,7 @@ jobs: name: "${{ steps.properties.outputs.mod_name }} For Forge v${{ steps.version.outputs.version }}" version: ${{ steps.version.outputs.version }} game-versions: 1.20.1 - version-type: release + version-type: ${{ env.VERSION_TYPE }} java: 17 fail-mode: skip changelog: ${{ github.event.release.body }} @@ -100,7 +101,7 @@ jobs: name: "${{ steps.properties.outputs.mod_name }} For Fabric v${{ steps.version.outputs.version }}" version: ${{ steps.version.outputs.version }} game-versions: 1.20.1 - version-type: release + version-type: ${{ env.VERSION_TYPE }} java: 17 fail-mode: skip changelog: ${{ github.event.release.body }}