Skip to content

Commit 26e5878

Browse files
authored
Merge pull request #2947 from Multiverse/modrinth-for-promote-release
Upload to modrinth when manually promote release
2 parents 8764108 + 3ad2322 commit 26e5878

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/promote_release.yml

+18
Original file line numberDiff line numberDiff line change
@@ -88,3 +88,21 @@ jobs:
8888
file: build/libs/multiverse-core-${{ env.VERSION }}.jar
8989
asset_name: multiverse-core-${{ steps.release.outputs.tag_name }}.jar
9090
tag: ${{ steps.release.outputs.tag_name }}
91+
92+
- name: Get Changelog
93+
id: changelog
94+
uses: cardinalby/[email protected]
95+
env:
96+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
97+
with:
98+
tag: ${{ steps.release.outputs.tag_name }}
99+
100+
- name: Modrinth Upload
101+
uses: gradle/gradle-build-action@v2
102+
with:
103+
arguments: build modrinth
104+
env:
105+
GITHUB_VERSION: ${{ env.VERSION }}
106+
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
107+
CHANGELOG: ${{ steps.changelog.outputs.body }}
108+
PRERELEASE: ${{ steps.changelog.outputs.prerelease }}

0 commit comments

Comments
 (0)