From 434b3c5df5745d49e9381458ab1556bfac05caeb Mon Sep 17 00:00:00 2001 From: Nanokloon Date: Tue, 29 Sep 2026 21:00:02 +0200 Subject: [PATCH] hope this works --- .gitea/actions/esp-idf-ci-action/action.yaml | 2 +- .gitea/workflows/build.yaml | 73 +++++++++++++++++++- 2 files changed, 73 insertions(+), 2 deletions(-) diff --git a/.gitea/actions/esp-idf-ci-action/action.yaml b/.gitea/actions/esp-idf-ci-action/action.yaml index 01d977c..6f4f841 100644 --- a/.gitea/actions/esp-idf-ci-action/action.yaml +++ b/.gitea/actions/esp-idf-ci-action/action.yaml @@ -59,4 +59,4 @@ runs: mkdir -p "$GITHUB_WORKSPACE/${INPUT_PATH}" docker cp "$CID:$WORKDIR/build/." "$GITHUB_WORKSPACE/${INPUT_PATH}/build" 2>/dev/null || true - exit $status \ No newline at end of file + exit $status diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 5dc71c2..7f995e1 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -17,4 +17,75 @@ jobs: uses: ./.gitea/actions/esp-idf-ci-action with: esp_idf_version: v6.0.2 - target: esp32c6 \ No newline at end of file + target: esp32c6 + + - name: Package firmware + if: startsWith(github.ref, 'refs/tags/') + run: | + set -euo pipefail + NAME="firmware-${GITHUB_REF_NAME}" + mkdir -p "release/${NAME}/build/bootloader" "release/${NAME}/build/partition_table" + + # Keep the build/ layout so "@flash_args" works after unzipping + cp build/bootloader/bootloader.bin "release/${NAME}/build/bootloader/" + cp build/partition_table/partition-table.bin "release/${NAME}/build/partition_table/" + cp "build/${PROJECT_BIN}" "release/${NAME}/build/" + cp build/flash_args "release/${NAME}/build/" + (cd release && zip -qr "${NAME}.zip" "${NAME}") + + # Standalone copies + cp build/bootloader/bootloader.bin release/ + cp build/partition_table/partition-table.bin release/ + cp "build/${PROJECT_BIN}" release/ + + cat > release/notes.md </dev/null + done \ No newline at end of file