Only output fimware file.
Build and Release OpenMQTTGateway Firmware / Build Firmware & Publish Gitea Release (push) Successful in 7m47s
Build and Release OpenMQTTGateway Firmware / Build Firmware & Publish Gitea Release (push) Successful in 7m47s
This commit is contained in:
1 parent
ef7b6ac00a
commit
d8ad7e7c2b
1 file changed
+3
-15
@@ -85,19 +85,9 @@ jobs:
|
||||
PIO_ENV: ${{ steps.prep.outputs.pio_env }}
|
||||
TAG_NAME: ${{ steps.prep.outputs.tag_name }}
|
||||
run: |
|
||||
BUILD_DIR=".pio/build/${PIO_ENV}"
|
||||
PREFIX="OpenMQTTGateway-${PIO_ENV}-${TAG_NAME}"
|
||||
BOOT_APP0="${HOME}/.platformio/packages/framework-arduinoespressif32/tools/partitions/boot_app0.bin"
|
||||
|
||||
mkdir -p dist
|
||||
cp "${BUILD_DIR}/firmware.bin" dist/firmware.bin
|
||||
cp "${BUILD_DIR}/firmware.bin" "dist/${PREFIX}-firmware.bin"
|
||||
cp "${BUILD_DIR}/firmware.elf" "dist/${PREFIX}-firmware.elf"
|
||||
# ESP32 specific images (only present for ESP32 environments)
|
||||
[ -f "${BUILD_DIR}/partitions.bin" ] && cp "${BUILD_DIR}/partitions.bin" "dist/${PREFIX}-partitions.bin"
|
||||
[ -f "${BUILD_DIR}/bootloader.bin" ] && cp "${BUILD_DIR}/bootloader.bin" "dist/${PREFIX}-bootloader.bin"
|
||||
[ -f "${BOOT_APP0}" ] && cp "${BOOT_APP0}" "dist/${PREFIX}-boot_app0.bin"
|
||||
(cd dist && sha256sum * > SHA256SUMS.txt)
|
||||
# Only the firmware image is published
|
||||
cp ".pio/build/${PIO_ENV}/firmware.bin" "dist/OpenMQTTGateway-${PIO_ENV}-${TAG_NAME}.bin"
|
||||
ls -lA dist
|
||||
|
||||
- name: Create Gitea Release and Upload Binaries
|
||||
@@ -133,9 +123,7 @@ jobs:
|
||||
f"Automated OpenMQTTGateway firmware build.\n\n"
|
||||
f"- **Environment:** `{pio_env}`\n"
|
||||
f"- **Commit:** `{short_sha}`\n"
|
||||
f"- **OTA update:** Upload `firmware.bin` via the WebUI / OTA.\n"
|
||||
f"- **Fresh install (ESP32):** Flash `*-bootloader.bin` @ `0x1000`, `*-partitions.bin` @ `0x8000`, "
|
||||
f"`*-boot_app0.bin` @ `0xe000` and `*-firmware.bin` @ `0x10000`."
|
||||
f"- **OTA update:** Upload the `.bin` file via the WebUI / OTA."
|
||||
)
|
||||
|
||||
# Check if a release for this tag already exists
|
||||
|
||||
Reference in new issue
Block a user