Use Prerelease instead of Beta for hangar release type.

This commit is contained in:
Jeremy Wood 2023-08-24 08:40:54 -04:00 committed by GitHub
parent 9b22bdf2ab
commit bb76ce194e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -92,9 +92,11 @@ jobs:
if [[ "${{ steps.release-info.outputs.prerelease }}" == "true" ]]; then if [[ "${{ steps.release-info.outputs.prerelease }}" == "true" ]]; then
echo Setting release_type to Beta echo Setting release_type to Beta
echo "release_type=Beta" >> $GITHUB_OUTPUT echo "release_type=Beta" >> $GITHUB_OUTPUT
echo "hangar_release_type=Prerelease" >> $GITHUB_OUTPUT
else else
echo Setting release_type to Release echo Setting release_type to Release
echo "release_type=Release" >> $GITHUB_OUTPUT echo "release_type=Release" >> $GITHUB_OUTPUT
echo "hangar_release_type=Release" >> $GITHUB_OUTPUT
fi fi
- name: Upload to Modrinth - name: Upload to Modrinth
@ -134,7 +136,7 @@ jobs:
author: Multiverse author: Multiverse
slug: ${{ inputs.hangar_slug }} slug: ${{ inputs.hangar_slug }}
version: ${{ steps.release-info.outputs.tag_name }} version: ${{ steps.release-info.outputs.tag_name }}
channel: ${{ steps.parse-release-type.outputs.release_type }} channel: ${{ steps.parse-release-type.outputs.hangar_release_type }}
files: '[{"path": "${{ github.workspace }}/${{ inputs.plugin_name }}-${{ steps.release-info.outputs.tag_name }}.jar", "platforms": ["PAPER"]}]' files: '[{"path": "${{ github.workspace }}/${{ inputs.plugin_name }}-${{ steps.release-info.outputs.tag_name }}.jar", "platforms": ["PAPER"]}]'
description: ${{ steps.release-artifact.outputs.body }} description: ${{ steps.release-artifact.outputs.body }}
platform_dependencies: '{"PAPER": ["1.13-1.20.1"]}' platform_dependencies: '{"PAPER": ["1.13-1.20.1"]}'