Skip to content

Commit cf555f1

Browse files
Fix automated release asset upload issue
The gh CLI no longer supports the #label syntax for asset names. Instead, copy files to properly named versions and upload them. Changes: - Create release_assets/ directory with properly named firmware files - Copy all 4 firmware files (2 bins + 2 elfs) with version in filename - Upload all files with wildcard instead of label syntax This fixes: HTTP 404 error when trying to upload with old #label syntax
1 parent 0991a5c commit cf555f1

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/automated-release.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -308,15 +308,19 @@ jobs:
308308
309309
echo "🚀 Creating automated release: $TAG_NAME"
310310
311+
# Prepare firmware files with proper names
312+
mkdir -p release_assets
313+
cp .pio/build/esp32dev/firmware.bin release_assets/esp32-wifi-utility-esp32dev-v${VERSION}.bin
314+
cp .pio/build/esp32dev/firmware.elf release_assets/esp32-wifi-utility-esp32dev-debug-v${VERSION}.elf
315+
cp .pio/build/adafruit_feather_esp32s3_tft/firmware.bin release_assets/esp32-wifi-utility-feather-s3-tft-v${VERSION}.bin
316+
cp .pio/build/adafruit_feather_esp32s3_tft/firmware.elf release_assets/esp32-wifi-utility-feather-s3-tft-debug-v${VERSION}.elf
317+
311318
# Create release with firmware attachments for both boards
312319
gh release create "$TAG_NAME" \
313320
--title "$RELEASE_NAME" \
314321
--notes-file release_notes.md \
315322
--latest \
316-
.pio/build/esp32dev/firmware.bin#esp32-wifi-utility-esp32dev-v${VERSION}.bin \
317-
.pio/build/esp32dev/firmware.elf#esp32-wifi-utility-esp32dev-debug-v${VERSION}.elf \
318-
.pio/build/adafruit_feather_esp32s3_tft/firmware.bin#esp32-wifi-utility-feather-s3-tft-v${VERSION}.bin \
319-
.pio/build/adafruit_feather_esp32s3_tft/firmware.elf#esp32-wifi-utility-feather-s3-tft-debug-v${VERSION}.elf
323+
release_assets/*
320324
321325
echo "✅ Automated release created successfully: $TAG_NAME"
322326
echo "📦 Firmware binaries attached for both ESP32dev and Feather ESP32-S3 TFT"

0 commit comments

Comments
 (0)