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 }}