-
Notifications
You must be signed in to change notification settings - Fork 33
executable file
·81 lines (79 loc) · 2.68 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
77
78
79
80
81
name: Publish Artifacts
on:
release:
types:
- published
jobs:
Build-Forge:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 21
uses: actions/setup-java@v2
with:
distribution: 'adopt'
java-version: 21
cache: 'gradle'
- name: Grant execute permission to gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew -p neoforge build
- uses: Kir-Antipov/mc-publish@v3.3
with:
files: neoforge/build/libs/!(*-@(dev|sources|api|javadoc)).jar
github-files: neoforge/build/libs/*-@(dev|sources|api|javadoc).jar
version-type: release
game-versions: 1.21.1
game-version-filter: releases
dependencies: |
cloth-config(required){modrinth:9s6osm5g}{curseforge:348521}#(ignore:github)
modrinth-featured: true
modrinth-id: 51shyZVL
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}
curseforge-id: 630104
curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }}
github-token: ${{ secrets.GITHUB_TOKEN }}
loaders: |
neoforge
retry-attempts: 2
retry-delay: 10000
fail-mode: skip
Build-Fabric:
runs-on: ubuntu-latest
needs: [Build-Forge] # So that fabric is always the latest on modrinth & curseforge
steps:
- uses: actions/checkout@v2
- name: Set up JDK 21
uses: actions/setup-java@v2
with:
distribution: 'adopt'
java-version: 21
cache: 'gradle'
- name: Grant execute permission to gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew -p fabric build
- uses: Kir-Antipov/mc-publish@v3.3
with:
files: fabric/build/libs/!(*-@(dev|sources|api|javadoc)).jar
github-files: fabric/build/libs/*-@(dev|sources|api|javadoc).jar
version-type: release
game-versions: |
1.21.1
1.21
game-version-filter: releases
dependencies: |
cloth-config(required){modrinth:9s6osm5g}{curseforge:348521}#(ignore:github)
sodium@mc1.21-0.5.11(incompatible){modrinth:AANobbMI}#(ignore:github)(ignore:curseforge)
modrinth-featured: true
modrinth-id: 51shyZVL
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}
curseforge-id: 630104
curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }}
github-token: ${{ secrets.GITHUB_TOKEN }}
loaders: |
fabric
quilt
retry-attempts: 2
retry-delay: 10000
fail-mode: skip