Updated workflow

This commit is contained in:
Niklas080208
2026-02-03 19:38:20 +01:00
parent afa88e16f8
commit 997c13ec6a

View File

@@ -84,19 +84,12 @@ jobs:
const changelogBody = fs.readFileSync('changelog_body.txt', 'utf8');
core.setOutput('release_body', changelogBody);
- name: 📦 Create firmware zip (exclude .nca.1)
- name: 📦 Create firmware zip
if: steps.version_check.outputs.new_version == 'true'
run: |
VER="${{ steps.download.outputs.firmware_version }}"
DIR="Firmware $VER"
EXCLUDED=$(find "$DIR" -name "*.nca.1" | wc -l)
echo "Excluding $EXCLUDED variant files (.nca.1) from zip"
# Copy only non-.nca.1 files into a temp dir, then zip (avoids zip -x path matching issues)
rm -rf zip_staging && mkdir -p "zip_staging/$DIR"
find "$DIR" -type f ! -name "*.nca.1" -exec sh -c 'cp "$1" "zip_staging/$1"' _ {} \;
(cd zip_staging && zip -r "../$DIR.zip" "$DIR")
rm -rf zip_staging
zip -r "$DIR.zip" "$DIR"
echo "Zip created: $DIR.zip"
- name: 📦 Create Tag and Release
@@ -116,7 +109,6 @@ jobs:
---
Excluded variant files (.nca.1): see workflow logs
files: |
Firmware ${{ steps.download.outputs.firmware_version }}.zip
env: