Update build.yml
This commit is contained in:
parent
d470c152be
commit
e334be8ad8
1 changed files with 40 additions and 11 deletions
51
.github/workflows/build.yml
vendored
51
.github/workflows/build.yml
vendored
|
|
@ -21,7 +21,7 @@ jobs:
|
||||||
project_version: ${{ steps.info.outputs.project_version }}
|
project_version: ${{ steps.info.outputs.project_version }}
|
||||||
mcversion: ${{ steps.info.outputs.mcversion }}
|
mcversion: ${{ steps.info.outputs.mcversion }}
|
||||||
tag: ${{ steps.version.outputs.tag }}
|
tag: ${{ steps.version.outputs.tag }}
|
||||||
changelog: ${{ steps.changelog_full.outputs.description }}
|
changelog: ${{ steps.mod_changes.outputs.news }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout with fetch depth 2
|
- name: Checkout with fetch depth 2
|
||||||
uses: actions/checkout@v4.1.1
|
uses: actions/checkout@v4.1.1
|
||||||
|
|
@ -228,8 +228,8 @@ jobs:
|
||||||
# with:
|
# with:
|
||||||
# path: CHANGELOG.md
|
# path: CHANGELOG.md
|
||||||
|
|
||||||
build-modpack:
|
build-cf-modpack:
|
||||||
name: Build Modpack
|
name: Build CF Modpack
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [modpack-info]
|
needs: [modpack-info]
|
||||||
steps:
|
steps:
|
||||||
|
|
@ -253,6 +253,36 @@ jobs:
|
||||||
mv -vf .github/buildtools/modpack/modlist.html ./
|
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
|
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
|
||||||
|
uses: actions/upload-artifact@v4.0.0
|
||||||
|
with:
|
||||||
|
name: modpack_cf
|
||||||
|
path: ${{ needs.modpack-info.outputs.project_name }}-${{ needs.modpack-info.outputs.project_version }}-cf.zip
|
||||||
|
|
||||||
|
build-mmc-modpack:
|
||||||
|
name: Build MMC Modpack
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: [modpack-info]
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4.1.1
|
||||||
|
|
||||||
|
- name: Replace strings
|
||||||
|
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/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
|
||||||
|
|
||||||
|
- name: Download Mods
|
||||||
|
run: |
|
||||||
|
git submodule init
|
||||||
|
cd mods
|
||||||
|
git config --local ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
git submodule update --recursive
|
||||||
|
|
||||||
- name: Export MMC
|
- name: Export MMC
|
||||||
run: |
|
run: |
|
||||||
cp -r mods overrides/
|
cp -r mods overrides/
|
||||||
|
|
@ -260,12 +290,6 @@ jobs:
|
||||||
mv -vf .github/buildtools/modpack/mmc-pack.json ./
|
mv -vf .github/buildtools/modpack/mmc-pack.json ./
|
||||||
mv -vf .github/buildtools/modpack/instance.cfg ./
|
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/
|
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 cf
|
|
||||||
uses: actions/upload-artifact@v4.0.0
|
|
||||||
with:
|
|
||||||
name: modpack_cf
|
|
||||||
path: ${{ needs.modpack-info.outputs.project_name }}-${{ needs.modpack-info.outputs.project_version }}-cf.zip
|
|
||||||
|
|
||||||
- name: Upload zip mmc
|
- name: Upload zip mmc
|
||||||
uses: actions/upload-artifact@v4.0.0
|
uses: actions/upload-artifact@v4.0.0
|
||||||
|
|
@ -277,11 +301,16 @@ jobs:
|
||||||
name: Build Serverpack
|
name: Build Serverpack
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [modpack-info]
|
needs: [modpack-info]
|
||||||
if: startsWith(github.ref, 'refs/tags/v')
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4.1.1
|
uses: actions/checkout@v4.1.1
|
||||||
|
|
||||||
|
- name: Replace strings
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
VERSION=${{ needs.modpack-info.outputs.project_version }}
|
||||||
|
sed -i -e "s/DEV/${VERSION}/g" config/bcc-common.toml
|
||||||
|
|
||||||
- name: Download Mods
|
- name: Download Mods
|
||||||
run: |
|
run: |
|
||||||
git submodule init
|
git submodule init
|
||||||
|
|
@ -304,7 +333,7 @@ jobs:
|
||||||
|
|
||||||
release:
|
release:
|
||||||
name: Release
|
name: Release
|
||||||
needs: [modpack-info, build-modpack, build-serverpack]
|
needs: [modpack-info, build-cf-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:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue