workflows
This commit is contained in:
parent
10722b2372
commit
c1752e19f0
3 changed files with 13 additions and 16 deletions
23
.github/workflows/preview.yml
vendored
23
.github/workflows/preview.yml
vendored
|
|
@ -14,7 +14,7 @@ jobs:
|
|||
|
||||
- name: Get the version
|
||||
id: get_version
|
||||
run: echo ::set-output name=version::${GITHUB_REF#refs/tags/}
|
||||
run: echo ::set-output name=version::${GITHUB_REF#refs/tags/Pre}
|
||||
|
||||
- name: Changelog Parser
|
||||
id: changelog
|
||||
|
|
@ -22,33 +22,30 @@ jobs:
|
|||
with:
|
||||
path: CHANGELOG.md
|
||||
|
||||
- name: move
|
||||
run: rsync -av --exclude-from='./.github/buildtools/filelist.txt' ./ .minecraft/
|
||||
|
||||
- name: Set the version
|
||||
run: |
|
||||
DEV=${{ steps.get_version.outputs.version }}
|
||||
sed -i -e "s/DEV/${DEV}/g" manifest.json
|
||||
sed -i -e "s/DEV/${DEV}/g" instance.cfg
|
||||
sed -i -e "s/DEV/${DEV}/g" .minecraft/config/fancymenu/customization/main_menu.txt
|
||||
sed -i -e "s/DEV/${DEV}/g" .minecraft/config/bcc-common.toml
|
||||
sed -i -e "s/DEV/${DEV}/g" config/fancymenu/customization/main_menu.txt
|
||||
sed -i -e "s/DEV/${DEV}/g" config/bcc-common.toml
|
||||
|
||||
- name: Archive Release MMC
|
||||
- name: Move
|
||||
run: rsync -av --exclude-from='.github/buildtools/filelist.txt' ./ .minecraft/
|
||||
|
||||
- name: Archive MMC
|
||||
run: zip -r TerraFirmaGreg-1.20-${{ steps.get_version.outputs.version }}-mmc.zip mmc-pack.json instance.cfg .minecraft/
|
||||
|
||||
- name: Archive Release CF
|
||||
- name: Archive CF
|
||||
run: |
|
||||
mv -vf .minecraft/ ./overrides/
|
||||
zip -r TerraFirmaGreg-1.20-${{ steps.get_version.outputs.version }}-cf.zip ./manifest.json ./modlist.html ./overrides/config/ ./overrides/kubejs/ ./overrides/defaultconfigs/
|
||||
|
||||
- name: Deleting Client Resources
|
||||
- name: Archive Server
|
||||
run: |
|
||||
cd ./overrides/
|
||||
cat ../.github/buildtools/client_mod.txt | while read -r line; do find ./mods -name "$line" -delete; done
|
||||
rm -rf ./shaderpacks
|
||||
|
||||
- name: Archive Release Server
|
||||
run: |
|
||||
cp -r ./.github/buildtools/serverfiles/* ./overrides/
|
||||
cd ./overrides/
|
||||
zip -r ../TerraFirmaGreg-1.20-${{ steps.get_version.outputs.version }}-server.zip ./
|
||||
|
|
@ -57,7 +54,7 @@ jobs:
|
|||
uses: softprops/action-gh-release@v0.1.15
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
with:
|
||||
prerelease: true
|
||||
prerelease: false
|
||||
generate_release_notes: true
|
||||
name: Release ${{ steps.changelog.outputs.version }}
|
||||
body: ${{ steps.changelog.outputs.description }}
|
||||
|
|
|
|||
4
.github/workflows/release.yml
vendored
4
.github/workflows/release.yml
vendored
|
|
@ -27,8 +27,8 @@ jobs:
|
|||
DEV=${{ steps.get_version.outputs.version }}
|
||||
sed -i -e "s/DEV/${DEV}/g" manifest.json
|
||||
sed -i -e "s/DEV/${DEV}/g" instance.cfg
|
||||
sed -i -e "s/DEV/${DEV}/g" .minecraft/config/fancymenu/customization/main_menu.txt
|
||||
sed -i -e "s/DEV/${DEV}/g" .minecraft/config/bcc-common.toml
|
||||
sed -i -e "s/DEV/${DEV}/g" config/fancymenu/customization/main_menu.txt
|
||||
sed -i -e "s/DEV/${DEV}/g" config/bcc-common.toml
|
||||
|
||||
- name: Move
|
||||
run: rsync -av --exclude-from='.github/buildtools/filelist.txt' ./ .minecraft/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue