88 workflow_dispatch :
99 inputs :
1010 target_branch :
11- description : ' Target branch for the preview'
11+ description : " Target branch for the preview"
1212 type : string
1313 required : true
1414 version :
15- description : ' Modpack version'
15+ description : " Modpack version"
1616 required : true
1717 preview_version :
18- description : ' Preview version'
18+ description : " Preview version"
1919 required : true
2020
2121env :
2525
2626jobs :
2727 build :
28- runs-on : ubuntu-latest
28+ runs-on : ubuntu-slim
2929 strategy :
3030 matrix :
3131 buildType : [standard, lwjgl3]
3232
3333 steps :
3434 - name : Checkout repository
35- uses : actions/checkout@v4
35+ uses : actions/checkout@v5
3636 with :
3737 ref : ${{ github.event.inputs.target_branch || github.ref }}
3838 fetch-depth : 0
3939
40- - name : Cache dependencies
41- uses : actions/cache@v4
42- with :
43- path : |
44- ~/.m2/repository
45- ~/.cache/pip
46- key : ${{ runner.os }}-deps-${{ matrix.buildType }}-${{ hashFiles('**/pom.xml') }}
47-
4840 - name : Download Resource Packs zip
4941 run : |
5042 GITHUB_RELEASE=$(curl -s https://api.github.com/repos/GTModpackTeam/GTE2-Translations/releases)
@@ -72,13 +64,13 @@ jobs:
7264 - name : Adjust for LWJGL3
7365 if : matrix.buildType == 'lwjgl3'
7466 run : |
75- python buildtools/gen-lwjgl3-manifest.py
67+ uv run --directory ./ buildtools python . /gen-lwjgl3-manifest.py
7668 cp -vf cmmc/manifest.json manifest.json
7769
7870 - name : Install Mods
7971 env :
8072 CF_API_TOKEN : ${{ secrets.CF_API_TOKEN }}
81- run : python buildtools/mod-install.py
73+ run : uv run --directory ./ buildtools python . /mod-install.py
8274
8375 - name : Clean up placeholder files
8476 run : find . -name ".gitkeep" -delete
@@ -87,21 +79,18 @@ jobs:
8779 run : |
8880 if [[ "${{ matrix.buildType }}" == "lwjgl3" ]]; then
8981 sed -i "s/B:EnableCustomGameTitle=false/B:EnableCustomGameTitle=true/" overrides/config/stellar_core.cfg
90- cp -rvf cmmc/bansoukou/ ./overrides/
91- rm -Rf cmmc/bansoukou/
9282 mv -vf overrides/ .minecraft/
9383 cp -vf icon.png .minecraft/
9484 cp -rvf cmmc/* ./
95- zip -r artifacts/${{ env.NAME }}-${{ env.VERSION_LWJGL3 }}-mmc.zip libraries/ patches/ mmc-pack.json instance.cfg .minecraft/
85+ zip -r artifacts/${{ env.NAME }}-${{ env.VERSION_LWJGL3 }}-mmc.zip patches/ mmc-pack.json instance.cfg .minecraft/
9686 else
97- zip -r artifacts/${{ env.NAME }}-${{ env.VERSION_NORMAL }}-cf.zip manifest.json modlist.html overrides/bansoukou/ overrides/ config/ overrides/local/ overrides/resourcepacks/icons/ overrides/resourcepacks/GTExpert2-* overrides/scripts/
87+ zip -r artifacts/${{ env.NAME }}-${{ env.VERSION_NORMAL }}-cf.zip manifest.json modlist.html overrides/config/ overrides/local/ overrides/resourcepacks/icons/ overrides/resourcepacks/GTExpert2-* overrides/scripts/
9888 mv overrides/ .minecraft/
9989 cp icon.png .minecraft/
10090 zip -r artifacts/${{ env.NAME }}-${{ env.VERSION_NORMAL }}-mmc.zip mmc-pack.json instance.cfg .minecraft/
10191 mv serverfiles/* ./
10292 rm -vf .minecraft/mods/!Red-Core-*
10393 rm -vf .minecraft/mods/Alfheim-*
104- rm -vf .minecraft/mods/Valkyrie-*
10594 rm -vf .minecraft/mods/CraftPresence-*
10695 rm -vf .minecraft/mods/Controlling-*
10796 rm -vf .minecraft/mods/UniLib-*
@@ -116,33 +105,32 @@ jobs:
116105 rm -vf .minecraft/mods/InGameInfoXML-*
117106 rm -vf .minecraft/mods/oauth-*
118107 rm -vf .minecraft/mods/UntranslatedItems-*
119- rm -vf .minecraft/mods/vintagefix-*
120108 mv -vf .minecraft/* ./
121- zip -r artifacts/${{ env.NAME }}-${{ env.VERSION_NORMAL }}-server.zip docker-compose.yml PleaseRead.txt log4j2_112-116.xml Install.* ServerStart.* settings.* TmuxServer.sh bansoukou/ config/ local/ mods/ resources/ scripts/
109+ zip -r artifacts/${{ env.NAME }}-${{ env.VERSION_NORMAL }}-server.zip docker-compose.yml PleaseRead.txt log4j2_112-116.xml Install.* ServerStart.* settings.* TmuxServer.sh config/ local/ mods/ resources/ scripts/
122110 fi
123111
124112 - name : Upload Artifacts
125- uses : actions/upload-artifact@v4
113+ uses : actions/upload-artifact@v5
126114 with :
127115 name : ${{ matrix.buildType }}-artifacts
128116 path : artifacts/
129117 retention-days : 1
130118
131119 release :
132120 needs : build
133- runs-on : ubuntu-latest
121+ runs-on : ubuntu-slim
134122 permissions :
135123 contents : write
136124
137125 steps :
138126 - name : Checkout repository
139- uses : actions/checkout@v4
127+ uses : actions/checkout@v5
140128 with :
141129 ref : ${{ github.event.inputs.target_branch || github.ref }}
142130 fetch-depth : 0
143131
144132 - name : Download All Artifacts
145- uses : actions/download-artifact@v4
133+ uses : actions/download-artifact@v6
146134 with :
147135 path : downloads
148136
0 commit comments