Update build.yml

This commit is contained in:
Xikaro 2024-01-05 00:54:00 +05:00
parent e334be8ad8
commit 47db7fa681

View file

@ -241,7 +241,6 @@ jobs:
run: | run: |
VERSION=${{ needs.modpack-info.outputs.project_version }} 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" ./.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/fancymenu/customization/main_menu.txt
sed -i -e "s/DEV/${VERSION}/g" config/bcc-common.toml sed -i -e "s/DEV/${VERSION}/g" config/bcc-common.toml
@ -271,7 +270,6 @@ jobs:
shell: bash shell: bash
run: | run: |
VERSION=${{ needs.modpack-info.outputs.project_version }} 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/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/fancymenu/customization/main_menu.txt
sed -i -e "s/DEV/${VERSION}/g" config/bcc-common.toml sed -i -e "s/DEV/${VERSION}/g" config/bcc-common.toml
@ -315,7 +313,9 @@ jobs:
run: | run: |
git submodule init git submodule init
cd mods cd mods
git config --local ${{ secrets.GITHUB_TOKEN }} git config --local
echo "username=Xikaro";
echo "password=${{ secrets.USER_TOKEN_XIKARO }}";
git submodule update --recursive git submodule update --recursive
- name: Export serverpack - name: Export serverpack
@ -333,7 +333,7 @@ jobs:
release: release:
name: Release name: Release
needs: [modpack-info, build-cf-modpack, build-serverpack] needs: [modpack-info, build-cf-modpack, build-mmc-modpack, build-serverpack]
if: startsWith(github.ref, 'refs/tags/') if: startsWith(github.ref, 'refs/tags/')
uses: ./.github/workflows/release.yml uses: ./.github/workflows/release.yml
with: with: