generated from FabricMC/fabric-example-mod
-
Notifications
You must be signed in to change notification settings - Fork 1
31 lines (26 loc) · 951 Bytes
/
publish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: publish
run-name: Publish ${{ github.ref_name }} to Modrinth and CurseForge
on:
workflow_dispatch:
release:
types:
- published
jobs:
publish:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- name: Download release assets
run: gh release download ${{ github.ref_name }} --repo ${{ github.repository }} --pattern '*.jar' --dir 'build/libs/'
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Publish release assets to Modrinth and CurseForge
uses: Kir-Antipov/mc-publish@v3.3
with:
java: 17
modrinth-id: uFJODQCA
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}
modrinth-featured: false
curseforge-id: 645296
curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }}