File tree Expand file tree Collapse file tree 3 files changed +20
-21
lines changed
Expand file tree Collapse file tree 3 files changed +20
-21
lines changed Original file line number Diff line number Diff line change @@ -10,27 +10,20 @@ jobs:
1010 runs-on : ubuntu-latest
1111
1212 steps :
13- - uses : actions/checkout@v3
13+ - uses : actions/checkout@v4
1414 - name : Set up JDK 21
15- uses : actions/setup-java@v3
15+ uses : actions/setup-java@v4
1616 with :
1717 java-version : ' 21'
1818 distribution : ' temurin'
19- # Taken from https://github.com/CaffeineMC/sodium-fabric/blob/1.19.3/dev/.github/workflows/gradle.yml
20- - name : Cache/Uncache
21- uses : actions/cache@v2
19+ - name : Setup Gradle
20+ uses : gradle/actions/setup-gradle@v4
2221 with :
23- path : |
24- ~/.gradle/caches
25- ~/.gradle/loom-cache
26- ~/.gradle/wrapper
27- key : ${{ runner.os }}-gradle-${{ hashFiles('**/gradle-wrapper.properties') }}
28- restore-keys : |
29- ${{ runner.os }}-gradle-
22+ cache-read-only : false
3023 - name : Build artifacts
31- run : ./gradlew remapJar
24+ run : ./gradlew buildAndCollect
3225 - name : Upload build artifacts
3326 uses : actions/upload-artifact@v4
3427 with :
3528 name : UnityTranslate Artifacts
36- path : build/versions/UnityTranslate-*.jar
29+ path : build/libs/
Original file line number Diff line number Diff line change @@ -2,11 +2,7 @@ name: Publish JDK 21 Mods
22on :
33 release :
44 types :
5- - ' published'
6-
7- env :
8- MODRINTH_TOKEN : ${{ secrets.MODRINTH_TOKEN }}
9- CURSEFORGE_TOKEN : ${{ secrets.CURSEFORGE_TOKEN }}
5+ - ' released'
106
117jobs :
128 build :
2117 java-version : 21
2218
2319 - name : Setup Gradle
24- uses : gradle/actions/setup-gradle@v3
20+ uses : gradle/actions/setup-gradle@v4
2521 with :
2622 cache-read-only : true
2723
2824 - name : Execute Gradle build
29- run : ./gradlew publishMod -Pdgt.publish.modrinth.token=${{ env.MODRINTH_TOKEN }} -Pdgt.publish.curseforge.apikey=${{ env.CURSEFORGE_TOKEN }}
25+ env :
26+ GITHUB_TAG : ${{ github.ref_name }}
27+ RELEASE_DESCRIPTION : ${{ github.event.release.body }}
28+ MODRINTH_TOKEN : ${{ secrets.MODRINTH_TOKEN }}
29+ CURSEFORGE_TOKEN : ${{ secrets.CURSEFORGE_TOKEN }}
30+ run : ./gradlew publishMods
Original file line number Diff line number Diff line change @@ -7,6 +7,11 @@ plugins {
77
88val minecraftVersion = stonecutter.current.version
99
10+ architectury.common(stonecutter.tree.branches.mapNotNull {
11+ if (stonecutter.current.project !in it) null
12+ else it.project.prop(" loom.platform" )
13+ })
14+
1015dependencies {
1116 modCompileOnly(" net.fabricmc:fabric-loader:${mod.dep(" fabric_loader" )} " )
1217 modCompileOnly(" net.fabricmc:fabric-language-kotlin:${mod.dep(" fabric_kotlin" )} " )
You can’t perform that action at this time.
0 commit comments