generated from FabricMC/fabric-example-mod
-
Notifications
You must be signed in to change notification settings - Fork 61
64 lines (56 loc) · 1.74 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
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@v2
- name: validate gradle wrapper
uses: gradle/wrapper-validation-action@v1
- name: setup jdk ${{ matrix.java }}
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java }}
- name: Set pre_release
run: |
sed -i "s/pre_release=alpha/pre_release=/g" gradle.properties
- name: make gradle wrapper executable
if: ${{ runner.os != 'Windows' }}
run: chmod +x ./gradlew
- name: preprocessResources
run: ./gradlew preprocessResources
- name: build
run: ./gradlew build
- name: Publish Minecraft Mods
uses: Kir-Antipov/mc-publish@v2.1
if: ${{ runner.os == 'Linux' && matrix.java == '17' }}
with:
modrinth-id: oQgSAEhD
modrinth-token: ${{ secrets.MODRINTH }}
curseforge-id: 454900
curseforge-token: ${{ secrets.CF_API_TOKEN }}
github-token: ${{ secrets.GITHUB_TOKEN }}
files-primary: fabricWrapper/build/libs/!(*-@(dev|sources)).jar
files-secondary: fabricWrapper/build/tmp/submods/META-INF/jars/!(*-@(dev|sources)).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
version-resolver: exact
retry-attempts: 3
retry-delay: 10000