Skip to content

Commit b853e92

Browse files
committed
Use Modrinth and CurseForge tokens for publishing
1 parent 8e62097 commit b853e92

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/publish.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ on:
44
types:
55
- 'published'
66

7+
env:
8+
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
9+
CURSEFORGE_TOKEN: ${{ secrets.CURSEFORGE_TOKEN }}
10+
711
jobs:
812
build:
913
name: Publish Versions
@@ -21,4 +25,4 @@ jobs:
2125
cache-read-only: true
2226

2327
- name: Execute Gradle build
24-
run: ./gradlew publishMod
28+
run: ./gradlew publishMod -Pdgt.publish.modrinth.token=${{ env.MODRINTH_TOKEN }} -Pdgt.publish.curseforge.apikey=${{ env.CURSEFORGE_TOKEN }}

0 commit comments

Comments
 (0)