-
-
Notifications
You must be signed in to change notification settings - Fork 89
53 lines (50 loc) · 1.67 KB
/
auto-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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Automatically publish to Modrinth and CurseForge
on:
release:
types: [published]
jobs:
publish-to-curseforge:
if: github.repository_owner == 'Fabulously-Optimized'
runs-on: ubuntu-22.04
environment: github-actions
steps:
- name: Download the pack files
uses: robinraju/[email protected]
id: download-files
with:
fileName: "*.zip"
latest: true
tarBall: false
zipBall: false
- name: Publish to CurseForge
uses: Kir-Antipov/[email protected]
with:
name: ${{ steps.download-files.outputs.tag_name }} for ${{ vars.MC_VERSION }}
curseforge-id: 396246
curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }}
curseforge-files: '*.zip'
loaders: fabric
game-versions: ${{ vars.MC_VERSION }}
publish-to-modrinth:
if: github.repository_owner == 'Fabulously-Optimized'
runs-on: ubuntu-22.04
environment: github-actions
steps:
- name: Download the pack files
uses: robinraju/[email protected]
id: download-files
with:
fileName: "*.mrpack"
latest: true
tarBall: false
zipBall: false
- name: Publish to Modrinth
uses: Kir-Antipov/[email protected]
with:
name: ${{ steps.download-files.outputs.tag_name }} for ${{ vars.MC_VERSION }}
modrinth-id: 1KVo5zza
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}
modrinth-unfeature-mode: subset
files: '*.mrpack'
loaders: fabric
game-versions: ${{ vars.MC_VERSION }}