-
Notifications
You must be signed in to change notification settings - Fork 9
94 lines (74 loc) · 2.9 KB
/
mod-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
82
83
84
85
86
87
88
89
90
91
92
93
94
name: Pubish mod
on: workflow_dispatch
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v2
- name: Set up JDK
uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: '17'
- name: Make Gradle wrapper executable
run: chmod +x ./gradlew
- name: Build with Gradle
run: ./gradlew --max-workers 1 build -x :Common:compileJava
- name: Collect version information
run: |
set_var() {
echo $1="$2"
echo $1="$2" >> $GITHUB_ENV
declare -g $1="$2"
}
set_var JAR_FILE $(eval echo fabric/build/libs/extremesoundmuffler-*-*-*.jar)
set_var MOD_VERSION $(echo ${JAR_FILE%.*} | cut -d- -f2)
- name: Publish Minecraft Mods Forge Edition
uses: Kir-Antipov/[email protected]
with:
files-primary: forge/build/libs/!(*-@(dev|sources|javadoc)).jar
modrinth-id: 5IIKsxiL
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}
curseforge-id: 363363
curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }}
name: Extreme sound muffler ${{env.MOD_VERSION}} - Forge ${{github.ref_name}}
loaders: forge
version: ${{env.MOD_VERSION}}-${{github.ref_name}}
java: Java 17
modrinth-featured: false
changelog-file: CHANGELOG.md
- name: Publish Minecraft Mods NeoForge Edition
uses: Kir-Antipov/[email protected]
with:
files-primary: neoforge/build/libs/!(*-@(dev|sources|javadoc)).jar
modrinth-id: 5IIKsxiL
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}
curseforge-id: 363363
curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }}
name: Extreme sound muffler ${{env.MOD_VERSION}} - NeoForge ${{github.ref_name}}
loaders: forge
version: ${{env.MOD_VERSION}}-${{github.ref_name}}
java: Java 17
modrinth-featured: false
changelog-file: CHANGELOG.md
- name: Publish Minecraft Mods Fabric Edition
uses: Kir-Antipov/[email protected]
with:
files-primary: fabric/build/libs/!(*-@(dev|sources|javadoc)).jar
modrinth-id: 5IIKsxiL
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}
curseforge-id: 566140
curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }}
name: Extreme sound muffler ${{env.MOD_VERSION}} - Fabric ${{github.ref_name}}
loaders: fabric
version: ${{env.MOD_VERSION}}-${{github.ref_name}}
java: Java 17
modrinth-featured: false
changelog-file: CHANGELOG.md
- name: Cleanup Gradle Cache
run: ./gradlew --stop |
rm -f ~/.gradle/caches/modules-2/modules-2.lock
rm -f ~/.gradle/caches/modules-2/gc.properties