Update build.yml

This commit is contained in:
Xikaro 2025-07-20 03:37:00 +05:00
parent fb0c7efb0f
commit 8181680c07

View file

@ -258,37 +258,6 @@ jobs:
path: ./build/modrinth/${{ needs.info.outputs.project_full_name }}-modrinth.mrpack
if-no-files-found: warn
build-server:
name: 📦 Build Server
needs: [info]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4.2.2
- name: 🔄 Replace strings
shell: bash
run: |
set +e
VERSION=${{ needs.info.outputs.project_version }}
sed -i -e "s/DEV/${VERSION}/g" pakku.json
sed -i -e "s/DEV/${VERSION}/g" config/fancymenu/customization/gui_main_menu.txt
- name: 📝 Cache pakku
uses: actions/cache@v4.2.3
id: cache
with:
path: build/.cache
key: pakku-cache-${{ hashFiles('pakku-lock.json') }}
restore-keys: pakku-cache-
- name: 📦 Export modpack
run: |
mv -vf ./.pakku/server-overrides/* ./
curl https://github.com/juraj-hrivnak/pakku/releases/latest/download/pakku.jar -o pakku.jar -L -J
java -jar pakku.jar export
- name: 📁 Rename artifact server
run: |
cd ./build/serverpack/
@ -354,7 +323,7 @@ jobs:
release-github:
name: 🚀 Release to GitHub
needs: [info, build-modpack, build-server, build-multimc]
needs: [info, build-modpack, build-multimc]
runs-on: ubuntu-latest
if: ${{ needs.info.outputs.make_release == 'true' }}
outputs:
@ -424,7 +393,7 @@ jobs:
release-curseforge:
name: 🚀 Release to CurseForge
needs: [info, build-modpack, build-server, release-github]
needs: [info, build-modpack, release-github]
runs-on: ubuntu-latest
if: ${{ needs.info.outputs.make_release == 'true' }}
outputs:
@ -474,7 +443,7 @@ jobs:
release-modrinth:
name: 🚀 Release to Modrinth
needs: [info, build-modpack, build-server, release-github]
needs: [info, build-modpack, release-github]
runs-on: ubuntu-latest
if: false
outputs: