generated from FabricMC/fabric-example-mod
-
Notifications
You must be signed in to change notification settings - Fork 30
76 lines (69 loc) · 1.95 KB
/
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
name: Publish Release
on:
release:
types:
- published
jobs:
build:
strategy:
matrix:
java: [ 17 ]
os: [ ubuntu-20.04 ]
runs-on: ${{ matrix.os }}
steps:
- name: checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: setup jdk ${{ matrix.java }}
uses: actions/setup-java@v3
with:
distribution: 'adopt'
java-version: ${{ matrix.java }}
- name: Cache Gradle packages
uses: actions/cache@v3
with:
path: |
~/.gradle/caches
./.gradle/loom-caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
- name: make gradle wrapper executable
run: chmod +x ./gradlew
- name: preprocessResources
env:
BUILD_TYPE: "RELEASE"
run: ./gradlew preprocessResources
- name: build
env:
BUILD_TYPE: "RELEASE"
run: ./gradlew build
- name: Publish Minecraft Mods
uses: Kir-Antipov/[email protected]
with:
modrinth-id: SFO4Ca80
modrinth-token: ${{ secrets.MODRINTH }}
curseforge-id: 525510
curseforge-token: ${{ secrets.CF_API_TOKEN }}
github-token: ${{ secrets.GITHUB_TOKEN }}
files-primary: fabricWrapper/build/libs/!(*-@(dev|sources|javadoc)).jar
files-secondary: fabricWrapper/build/tmp/submods/META-INF/jars/!(*-@(dev|sources|javadoc)).jar
name: ''
version-type: release
changelog: ${{ github.event.release.body }}
loaders: fabric
game-versions: |
1.14.4
1.15.2
1.16.5
1.17.1
1.18.2
1.19.2
1.19.3
1.19.4
1.20.1
1.20.2
1.20.4
version-resolver: any
retry-attempts: 3
retry-delay: 10000