Refactor texture pack packaging to ensure proper structure and include SHA1 checksum for verification
This commit is contained in:
@ -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
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user