Skip to content

Commit 5f87bfb

Browse files
committed
fix api token
1 parent 96f55c3 commit 5f87bfb

File tree

2 files changed

+19
-4
lines changed

2 files changed

+19
-4
lines changed

.github/workflows/publish.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,13 @@ on:
99
matrix:
1010
type: string
1111
required: true
12+
secrets:
13+
GITHUB_TOKEN:
14+
required: true
15+
CURSEFORGE_TOKEN:
16+
required: true
17+
MODRINTH_API_TOKEN:
18+
required: true
1219

1320
jobs:
1421
publish:
@@ -82,11 +89,11 @@ jobs:
8289
uses: Kir-Antipov/mc-publish@v3.3
8390
with:
8491
modrinth-id: DgWBIBY5
85-
modrinth-token: ${{ secrets.MODRINTH_API_TOKEN }}
92+
modrinth-token: ${{ env.MODRINTH_API_TOKEN }}
8693
curseforge-id: 951047
87-
curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }}
94+
curseforge-token: ${{ env.CURSEFORGE_TOKEN }}
8895
github-tag: ${{ steps.release_info.outputs.tag_name }}
89-
github-token: ${{ secrets.GITHUB_TOKEN }}
96+
github-token: ${{ env.GITHUB_TOKEN }}
9097
files: ${{ steps.file_info.outputs.path }}
9198
name: ${{ format('{0} v{1} for mc{2}-{3}', steps.properties_g.outputs.archives_name, steps.properties_g.outputs.mod_version, steps.properties_g.outputs.minecraft_version, steps.properties_v.outputs.platform) }}
9299
version: ${{ format('mc{0}-v{1}-{2}', steps.properties_g.outputs.minecraft_version, steps.properties_g.outputs.mod_version, steps.properties_v.outputs.platform) }}

.github/workflows/release.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ jobs:
4646
with:
4747
version-type: release
4848
matrix: ${{ needs.matrix_prep.outputs.matrix }}
49+
secrets:
50+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
51+
CURSEFORGE_TOKEN: ${{ secrets.CURSEFORGE_TOKEN }}
52+
MODRINTH_API_TOKEN: ${{ secrets.MODRINTH_API_TOKEN }}
4953

5054
release_alpha:
5155
needs:
@@ -54,4 +58,8 @@ jobs:
5458
uses: ./.github/workflows/publish.yml
5559
with:
5660
version-type: alpha
57-
matrix: ${{ needs.matrix_prep.outputs.matrix }}
61+
matrix: ${{ needs.matrix_prep.outputs.matrix }}
62+
secrets:
63+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
64+
CURSEFORGE_TOKEN: ${{ secrets.CURSEFORGE_TOKEN }}
65+
MODRINTH_API_TOKEN: ${{ secrets.MODRINTH_API_TOKEN }}

0 commit comments

Comments
 (0)