Skip to content

Commit

Permalink
workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Xikaro committed Nov 26, 2023
1 parent 10722b2 commit c1752e1
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 16 deletions.
23 changes: 10 additions & 13 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,41 +14,38 @@ 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
uses: coditory/changelog-parser@v1.0.2
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: Move
run: rsync -av --exclude-from='.github/buildtools/filelist.txt' ./ .minecraft/

- name: Archive Release MMC
- 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 ./
Expand All @@ -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 }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Changelog
## [0.1.0] - 2023-11-26
## [0.1.0] - 2023-11-27
### Fixes
- Исправлен баг, когда можно было дублировать металл через броню, пластины, палки и другое.
- Исправлен баг, когда обычные железные слитки нельзя было расплавить в железо.
Expand Down

0 comments on commit c1752e1

Please sign in to comment.