Merge pull request #2947 from Multiverse/modrinth-for-promote-release

Upload to modrinth when manually promote release
This commit is contained in:
Jeremy Wood 2023-08-15 23:56:19 -04:00 committed by GitHub
commit 26e587805d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -88,3 +88,21 @@ jobs:
file: build/libs/multiverse-core-${{ env.VERSION }}.jar
asset_name: multiverse-core-${{ steps.release.outputs.tag_name }}.jar
tag: ${{ steps.release.outputs.tag_name }}
- name: Get Changelog
id: changelog
uses: cardinalby/git-get-release-action@1.2.4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag: ${{ steps.release.outputs.tag_name }}
- name: Modrinth Upload
uses: gradle/gradle-build-action@v2
with:
arguments: build modrinth
env:
GITHUB_VERSION: ${{ env.VERSION }}
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
CHANGELOG: ${{ steps.changelog.outputs.body }}
PRERELEASE: ${{ steps.changelog.outputs.prerelease }}