2 Commits

Author SHA1 Message Date
5b3e567cc5 Merge branch 'main' of https://git.devbeni.lol/MineDivinity/pack
Some checks failed
Texture Pack Packaging and Release / package-and-release (push) Failing after 6s
2025-06-22 03:08:44 +02:00
2c85007d5e Refactor texture pack packaging to ensure proper structure and include SHA1 checksum for verification 2025-06-22 03:08:43 +02:00

View File

@ -42,10 +42,15 @@ jobs:
- name: Package texture pack - name: Package texture pack
run: | run: |
zip -r MineDivinity-Pack.zip \ # Create proper Minecraft pack structure
pack/pack.mcmeta \ mkdir -p temp/pack
pack/pack.png \ cp pack/pack.mcmeta temp/pack/
pack/assets/ \ cp pack/pack.png temp/pack/
cp -r pack/assets/ temp/pack/
# Create ZIP with correct structure
cd temp && zip -r ../MineDivinity-Pack.zip pack/
cd ..
# Generate SHA1 checksum # Generate SHA1 checksum
sha1sum MineDivinity-Pack.zip > MineDivinity-Pack.sha1.txt sha1sum MineDivinity-Pack.zip > MineDivinity-Pack.sha1.txt
@ -59,6 +64,11 @@ jobs:
git config --global user.email "actions@gitea" git config --global user.email "actions@gitea"
git remote set-url origin https://x:${{ secrets.TOKEN }}@git.devbeni.lol/MineDivinity/pack.git git remote set-url origin https://x:${{ secrets.TOKEN }}@git.devbeni.lol/MineDivinity/pack.git
- name: Create Tag
run: |
git tag -a v${{ env.VERSION }} -m "Release v${{ env.VERSION }}"
git push origin v${{ env.VERSION }}
- name: Commit version update - name: Commit version update
run: | run: |
# Pull changes and handle potential merge conflicts # Pull changes and handle potential merge conflicts
@ -86,6 +96,10 @@ jobs:
body: | body: |
Minecraft Texture Pack Release Minecraft Texture Pack Release
Version: ${{ env.VERSION }} Version: ${{ env.VERSION }}
Includes:
- Properly structured texture pack
- SHA1 checksum for verification
draft: false draft: false
prerelease: false prerelease: false