3
0
mirror of https://github.com/NekoMonci12/mine-compress.git synced 2025-12-19 15:09:20 +00:00

Fix Rezipping Zip Files

This commit is contained in:
Muhammad Tamir
2025-07-08 19:19:33 +07:00
parent 59e5802ee6
commit 90fe1432de

View File

@@ -157,26 +157,11 @@ jobs:
echo -e "\n✅ OGG compression complete." echo -e "\n✅ OGG compression complete."
- name: Re-zip Packs - name: Upload Optimized Folder
run: |
cd input/unpacked
zip -r ../../optimized-pack.zip .
- name: Verify Packs
run: |
if [[ ! -f optimized-pack.zip ]]; then
echo "❌ optimized-pack.zip not found!"
exit 1
else
echo "✅ optimized-pack.zip exists."
ls -lh optimized-pack.zip
fi
- name: Upload Packs
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: optimized-pack name: optimized-pack
path: optimized-pack.zip path: input/unpacked
- name: Comment + Label + Close Issue - name: Comment + Label + Close Issue
if: always() if: always()
@@ -194,7 +179,7 @@ jobs:
sudo apt-get install -y -qq gh sudo apt-get install -y -qq gh
fi fi
if [[ "${{ steps.extract.outputs.status }}" == "success" && -f optimized-pack.zip ]]; then if [[ "${{ steps.extract.outputs.status }}" == "success" && -d input/unpacked ]]; then
gh issue comment "$ISSUE_NUMBER" --repo "$REPO" \ gh issue comment "$ISSUE_NUMBER" --repo "$REPO" \
--body=$'✅ Optimization complete!\n\nDownload from: https://github.com/'"$REPO"'/actions/runs/'"$RUN_ID" --body=$'✅ Optimization complete!\n\nDownload from: https://github.com/'"$REPO"'/actions/runs/'"$RUN_ID"