diff --git a/.gitea/workflows/build-release.yml b/.gitea/workflows/build-release.yml index 9dd03a7..477a43b 100644 --- a/.gitea/workflows/build-release.yml +++ b/.gitea/workflows/build-release.yml @@ -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