@@ -13,10 +13,7 @@ concurrency:
13
13
env :
14
14
RELEASE_TYPE : " alpha"
15
15
MINECRAFT_VERSION : " 1.20.1"
16
- RELEASE_ON_GITHUB : " true"
17
- RELEASE_ON_CURSEFORGE : " true"
18
- RELEASE_ON_MODRINTH : " false"
19
- DEV_ENVIRONMENT : ${{ github.branch != 'main' }}
16
+ DEV_ENVIRONMENT : ${{ github.ref_name != 'main' }}
20
17
21
18
jobs :
22
19
info :
28
25
project_full_name : ${{ steps.pakku_info.outputs.name }}-${{ steps.check.outputs.version }}
29
26
changelog : ${{ steps.changelog.outputs.description }}
30
27
diff : ${{ steps.read_diff.outputs.diff }}
31
- exists : ${{ steps.check_tag.outputs.exists }}
28
+ release_exists : ${{ steps.check_tag.outputs.exists == 'true' && env.DEV_ENVIRONMENT == 'false' }}
32
29
33
30
steps :
34
31
- name : Checkout
@@ -147,7 +144,7 @@ jobs:
147
144
id : determine_version
148
145
shell : bash
149
146
run : |
150
- if [ ${{ github. env.DEV_ENVIRONMENT == 'true' }} ]; then
147
+ if [ ${{ env.DEV_ENVIRONMENT }} || steps.pakku_info.outputs.version ]; then
151
148
echo "version=unreleased" >> $GITHUB_OUTPUT
152
149
else
153
150
echo "version=${{ steps.pakku_info.outputs.version }}" >> $GITHUB_OUTPUT
@@ -165,11 +162,11 @@ jobs:
165
162
id : check
166
163
shell : bash
167
164
run : |
168
- if [ ${{ github. env.DEV_ENVIRONMENT == 'true' }} ]; then
165
+ if [ ${{ env.DEV_ENVIRONMENT }} || ${{ steps.changelog.outcome }} == 'failure' ]; then
169
166
echo "version=build_#${{ github.run_number }}" >> $GITHUB_OUTPUT
170
167
echo "status=Unreleased" >> $GITHUB_OUTPUT
171
168
else
172
- echo "status=${{ steps.changelog.outputs.status }}" >> $GITHUB_OUTPUT
169
+ echo "status=${{ env.RELEASE_TYPE }}" >> $GITHUB_OUTPUT
173
170
echo "version=${{ steps.pakku_info.outputs.version }}" >> $GITHUB_OUTPUT
174
171
fi
175
172
@@ -192,6 +189,10 @@ jobs:
192
189
📃 **Release Type**: `${{ steps.check.outputs.status }}`
193
190
📃 **Game Version**: `${{ steps.pakku_lock_info.outputs.mc_versions }}`
194
191
192
+ 📃 **Dev Environment**: `${{ env.DEV_ENVIRONMENT }}`
193
+ 📃 **Tag Exists**: `${{ steps.check_tag.outputs.exists }}`
194
+
195
+
195
196
${{ steps.changelog.outputs.description }}
196
197
${{ steps.format_diff.outputs.text }}
197
198
@@ -200,7 +201,6 @@ jobs:
200
201
name : 📦 Build Modpack
201
202
needs : [info]
202
203
runs-on : ubuntu-latest
203
-
204
204
steps :
205
205
- name : Checkout
206
206
uses : actions/checkout@v4.2.2
@@ -214,7 +214,7 @@ jobs:
214
214
sed -i -e "s/\"version\": \"[0-9.]*\"/\"version\": \"${VERSION}\"/g" pakku.json
215
215
sed -i -e "s/DEV/${VERSION}/g" config/fancymenu/customization/gui_main_menu.txt
216
216
217
- - name : Cache pakku
217
+ - name : 📝 Cache pakku
218
218
uses : actions/cache@v4.2.3
219
219
id : cache
220
220
with :
@@ -255,7 +255,6 @@ jobs:
255
255
name : 📦 Build Server
256
256
needs : [info]
257
257
runs-on : ubuntu-latest
258
-
259
258
steps :
260
259
- name : Checkout
261
260
uses : actions/checkout@v4.2.2
@@ -269,7 +268,7 @@ jobs:
269
268
sed -i -e "s/\"version\": \"[0-9.]*\"/\"version\": \"${VERSION}\"/g" pakku.json
270
269
sed -i -e "s/DEV/${VERSION}/g" config/fancymenu/customization/gui_main_menu.txt
271
270
272
- - name : Cache pakku
271
+ - name : 📝 Cache pakku
273
272
uses : actions/cache@v4.2.3
274
273
id : cache
275
274
with :
@@ -299,7 +298,6 @@ jobs:
299
298
name : 📦 Build MultiMC
300
299
needs : [info]
301
300
runs-on : ubuntu-latest
302
-
303
301
steps :
304
302
- name : Checkout
305
303
uses : actions/checkout@v4.2.2
@@ -314,7 +312,7 @@ jobs:
314
312
sed -i -e "s/DEV/${VERSION}/g" config/fancymenu/customization/gui_main_menu.txt
315
313
sed -i -e "s/DEV/${VERSION}/g" .pakku/multimc-overrides/instance.cfg
316
314
317
- - name : Cache pakku
315
+ - name : 📝 Cache pakku
318
316
uses : actions/cache@v4.2.3
319
317
id : cache
320
318
with :
@@ -350,7 +348,7 @@ jobs:
350
348
name : 🚀 Release to GitHub
351
349
needs : [info, build-modpack, build-server, build-multimc]
352
350
runs-on : ubuntu-latest
353
- if : github.env.RELEASE_ON_GITHUB && !github.env.DEV_ENVIRONMENT && ! needs.info.outputs.exists
351
+ if : needs.info.outputs.release_exists == 'false'
354
352
outputs :
355
353
url : ${{ steps.release.outputs.url }}
356
354
@@ -419,7 +417,7 @@ jobs:
419
417
name : 🚀 Release to CurseForge
420
418
needs : [info, build-modpack, build-server, release-github]
421
419
runs-on : ubuntu-latest
422
- if : github.env.RELEASE_ON_CURSEFORGE && !github.env.DEV_ENVIRONMENT && ! needs.info.outputs.exists
420
+ if : needs.info.outputs.release_exists == 'false'
423
421
outputs :
424
422
id : ${{ steps.release.outputs.id }}
425
423
@@ -469,7 +467,7 @@ jobs:
469
467
name : 🚀 Release to Modrinth
470
468
needs : [info, build-modpack, build-server, release-github]
471
469
runs-on : ubuntu-latest
472
- if : github.env.RELEASE_ON_MODRINTH && !github.env.DEV_ENVIRONMENT && !needs.info.outputs.exists
470
+ if : false
473
471
outputs :
474
472
id : ${{ steps.release.outputs.id }}
475
473
0 commit comments