Skip to content

Commit 3582188

Browse files
committed
re-add modrinth publish
1 parent 3e8f52b commit 3582188

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/build.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,3 +63,12 @@ jobs:
6363
with:
6464
files: 'build/libs/*.jar;!build/libs/*-sources.jar'
6565
repo-token: ${{ secrets.GITHUB_TOKEN }}
66+
67+
- name: Modrinth Publish
68+
env:
69+
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
70+
CHANGELOG: ${{ github.event.release.body }}
71+
if: github.event_name == 'release' && github.event.action == 'published' && ${{ env.MODRINTH_TOKEN != '' }}
72+
run: |
73+
./gradlew modrinth
74+
./gradlew modrinthSyncBody

0 commit comments

Comments
 (0)