Update build.yml
This commit is contained in:
parent
9039d1232d
commit
a486f8a764
1 changed files with 9 additions and 9 deletions
18
.github/workflows/build.yml
vendored
18
.github/workflows/build.yml
vendored
|
|
@ -241,7 +241,7 @@ jobs:
|
|||
shell: bash
|
||||
run: |
|
||||
VERSION=${{ needs.modpack-info.outputs.project_version }}
|
||||
sed -i -e "s/DEV/${VERSION}/g" ./.github/buildtools/modpack/manifest.json
|
||||
sed -i -e "s/DEV/${VERSION}/g" .github/buildtools/modpack/manifest.json
|
||||
sed -i -e "s/DEV/${VERSION}/g" config/fancymenu/customization/main_menu.txt
|
||||
sed -i -e "s/DEV/${VERSION}/g" config/bcc-common.toml
|
||||
|
||||
|
|
@ -249,8 +249,8 @@ jobs:
|
|||
run: |
|
||||
mkdir -p overrides
|
||||
mv -vf {config,defaultconfigs,kubejs} overrides/
|
||||
mv -vf ./.github/buildtools/modpack/manifest.json ./
|
||||
mv -vf ./.github/buildtools/modpack/modlist.html ./
|
||||
mv -vf .github/buildtools/modpack/manifest.json ./
|
||||
mv -vf .github/buildtools/modpack/modlist.html ./
|
||||
zip -r ${{ needs.modpack-info.outputs.project_name }}-${{ needs.modpack-info.outputs.project_version }}-cf.zip manifest.json modlist.html overrides
|
||||
|
||||
- name: Upload zip cf
|
||||
|
|
@ -272,7 +272,7 @@ jobs:
|
|||
shell: bash
|
||||
run: |
|
||||
VERSION=${{ needs.modpack-info.outputs.project_version }}
|
||||
sed -i -e "s/DEV/${VERSION}/g" ./.github/buildtools/modpack/instance.cfg
|
||||
sed -i -e "s/DEV/${VERSION}/g" .github/buildtools/modpack/instance.cfg
|
||||
sed -i -e "s/DEV/${VERSION}/g" config/fancymenu/customization/main_menu.txt
|
||||
sed -i -e "s/DEV/${VERSION}/g" config/bcc-common.toml
|
||||
|
||||
|
|
@ -289,8 +289,8 @@ jobs:
|
|||
run: |
|
||||
mkdir -p .minecraft
|
||||
mv -vf {config,defaultconfigs,kubejs,mods} .minecraft/
|
||||
mv -vf ./.github/buildtools/modpack/mmc-pack.json ./
|
||||
mv -vf ./.github/buildtools/modpack/instance.cfg ./
|
||||
mv -vf .github/buildtools/modpack/mmc-pack.json ./
|
||||
mv -vf .github/buildtools/modpack/instance.cfg ./
|
||||
zip -r ${{ needs.modpack-info.outputs.project_name }}-${{ needs.modpack-info.outputs.project_version }}-mmc.zip mmc-pack.json instance.cfg .minecraft/
|
||||
|
||||
- name: Upload zip mmc
|
||||
|
|
@ -326,10 +326,10 @@ jobs:
|
|||
- name: Export serverpack
|
||||
run: |
|
||||
mkdir -p .minecraft
|
||||
mv -vf {config,defaultconfigs,kubejs,mods,./.github/buildtools/serverpack/*} .minecraft
|
||||
cat ./.github/buildtools/client_mod.txt | while read -r line; do find .minecraft/mods -name "$line" -delete; done
|
||||
mv -vf {config,defaultconfigs,kubejs,mods,.github/buildtools/serverpack/*} .minecraft
|
||||
cat .github/buildtools/client_mod.txt | while read -r line; do find .minecraft/mods -name "$line" -delete; done
|
||||
cd .minecraft/
|
||||
zip -r ${{ needs.modpack-info.outputs.project_name }}-${{ needs.modpack-info.outputs.project_version }}-server.zip ./
|
||||
zip -r ./${{ needs.modpack-info.outputs.project_name }}-${{ needs.modpack-info.outputs.project_version }}-server.zip ./
|
||||
|
||||
- name: Upload zip
|
||||
uses: actions/upload-artifact@v4.0.0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue