From 3ad2322db77ae1f568ac2bf07fc6b83b247e6c7f Mon Sep 17 00:00:00 2001 From: Ben Woo <30431861+benwoo1110@users.noreply.github.com> Date: Tue, 15 Aug 2023 23:28:39 +0800 Subject: [PATCH] Upload to modrinth when manually promote release --- .github/workflows/promote_release.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/promote_release.yml b/.github/workflows/promote_release.yml index 5ee77d1d..d9ca65e4 100644 --- a/.github/workflows/promote_release.yml +++ b/.github/workflows/promote_release.yml @@ -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 }}