From 2c85007d5e8c65755297d7519c3769c614862dd2 Mon Sep 17 00:00:00 2001 From: B3ni Date: Sun, 22 Jun 2025 03:08:43 +0200 Subject: [PATCH] Refactor texture pack packaging to ensure proper structure and include SHA1 checksum for verification --- .gitea/workflows/build-and-release.yml | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/build-and-release.yml b/.gitea/workflows/build-and-release.yml index efdcdac..491710f 100644 --- a/.gitea/workflows/build-and-release.yml +++ b/.gitea/workflows/build-and-release.yml @@ -42,10 +42,15 @@ jobs: - name: Package texture pack run: | - zip -r MineDivinity-Pack.zip \ - pack/pack.mcmeta \ - pack/pack.png \ - pack/assets/ \ + # Create proper Minecraft pack structure + mkdir -p temp/pack + cp pack/pack.mcmeta temp/pack/ + 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 sha1sum MineDivinity-Pack.zip > MineDivinity-Pack.sha1.txt @@ -59,6 +64,11 @@ jobs: git config --global user.email "actions@gitea" 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 run: | # Pull changes and handle potential merge conflicts @@ -86,6 +96,10 @@ jobs: body: | Minecraft Texture Pack Release Version: ${{ env.VERSION }} + + Includes: + - Properly structured texture pack + - SHA1 checksum for verification draft: false prerelease: false