Updated workflow
This commit is contained in:
12
.github/workflows/firmware-autodl.yml
vendored
12
.github/workflows/firmware-autodl.yml
vendored
@@ -84,19 +84,12 @@ jobs:
|
|||||||
const changelogBody = fs.readFileSync('changelog_body.txt', 'utf8');
|
const changelogBody = fs.readFileSync('changelog_body.txt', 'utf8');
|
||||||
core.setOutput('release_body', changelogBody);
|
core.setOutput('release_body', changelogBody);
|
||||||
|
|
||||||
- name: 📦 Create firmware zip (exclude .nca.1)
|
- name: 📦 Create firmware zip
|
||||||
if: steps.version_check.outputs.new_version == 'true'
|
if: steps.version_check.outputs.new_version == 'true'
|
||||||
run: |
|
run: |
|
||||||
VER="${{ steps.download.outputs.firmware_version }}"
|
VER="${{ steps.download.outputs.firmware_version }}"
|
||||||
DIR="Firmware $VER"
|
DIR="Firmware $VER"
|
||||||
EXCLUDED=$(find "$DIR" -name "*.nca.1" | wc -l)
|
zip -r "$DIR.zip" "$DIR"
|
||||||
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
|
|
||||||
echo "Zip created: $DIR.zip"
|
echo "Zip created: $DIR.zip"
|
||||||
|
|
||||||
- name: 📦 Create Tag and Release
|
- name: 📦 Create Tag and Release
|
||||||
@@ -116,7 +109,6 @@ jobs:
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
ℹ️ Excluded variant files (.nca.1): see workflow logs
|
|
||||||
files: |
|
files: |
|
||||||
Firmware ${{ steps.download.outputs.firmware_version }}.zip
|
Firmware ${{ steps.download.outputs.firmware_version }}.zip
|
||||||
env:
|
env:
|
||||||
|
|||||||
Reference in New Issue
Block a user