1- name : Release
2-
1+ name : Mod Build
32on :
4- push :
5- tags :
6- - ' v*'
7-
3+ - pull_request
4+ - push
5+ - workflow_dispatch
86jobs :
9- release :
10- uses : TeamFelnull/actions-reusable-workflows/.github/workflows/mcmod-release.yml@master
11- with :
12- build_tasks : " build publish curseforge modrinth"
13- secrets :
14- curseforge_token : ${{ secrets.CURSEFORGE_TOKEN_MORI }}
15- modrinth_token : ${{ secrets.MODRINTH_TOKEN_MORI }}
16- maven_password : ${{ secrets.MAVEN_PASSWORD }}
17-
18- postRelease :
19- name : Update after release
20- needs : release
21- uses : TeamFelnull/actions-reusable-workflows/.github/workflows/mcmod-post-release.yml@master
22- with :
23- update_neoforge_version_check : false
7+ build :
8+ runs-on : blacksmith-4vcpu-ubuntu-2404
9+ steps :
10+ - name : Checkout Repository
11+ uses : actions/checkout@v4
12+ with :
13+ fetch-depth : 200
14+ - name : Set up JDK 17
15+ uses : useblacksmith/setup-java@v5
16+ with :
17+ java-version : 17
18+ distribution : zulu
19+ cache : gradle
20+ - name : Loom Cache
21+ uses : useblacksmith/cache@v5
22+ with :
23+ path : " **/.gradle/loom-cache"
24+ key : " ${{ runner.os }}-gradle-${{ hashFiles('**/libs.versions.*', '**/*.gradle*', '**/gradle-wrapper.properties') }}"
25+ restore-keys : " ${{ runner.os }}-gradle-"
26+ - uses : gradle/actions/wrapper-validation@v4
27+ - run : chmod +x ./gradlew
28+ - name : Run datagen and build
29+ run : ./gradlew :fabric:runDatagen build
30+ env :
31+ MAVEN_PASSWORD : ${{ secrets.MAVEN_PASSWORD }}
32+ - name : Upload Build Artifacts forge
33+ uses : actions/upload-artifact@v4
34+ with :
35+ name : IamMusicPlayerRenewedForge
36+ path : forge/build/libs
37+ compression-level : 9
38+ - name : Upload Build Artifacts fabric
39+ uses : actions/upload-artifact@v4
40+ with :
41+ name : IamMusicPlayerRenewedFabric
42+ path : fabric/build/libs
43+ compression-level : 9
0 commit comments