Add Gitea OTA firmware update, dual-slot partition layout, and Gitea Actions release workflow
Some checks failed
Build & Release Firmware / Build ESP32 Firmware (push) Failing after 2m50s

This commit is contained in:
2026-09-12 11:18:12 +02:00
parent 1d954287a2
commit aa80f7c091

View File

@@ -2,6 +2,8 @@ name: Build & Release Firmware
on:
push:
branches:
- main
tags:
- 'v*'
workflow_dispatch:
@@ -11,7 +13,7 @@ jobs:
name: Build ESP32 Firmware
runs-on: ubuntu-latest
container:
image: espressif/idf:v5.5
image: espressif/idf:release-v5.1
steps:
- name: Checkout repository
uses: actions/checkout@v4
@@ -38,20 +40,21 @@ jobs:
tar -czvf full-flash-bundle-${{ gitea.ref_name || 'latest' }}.tar.gz *.bin
cd ..
- name: Upload Artifacts to Workflow
uses: actions/upload-artifact@v4
with:
name: mtg-firmware-${{ gitea.ref_name || 'main' }}
path: release-dist/*
- name: Publish to Gitea Release
uses: https://gitea.com/actions/release-action@v1
if: startsWith(github.ref, 'refs/tags/')
uses: https://gitea.com/actions/release-action@main
continue-on-error: true
with:
files: |
release-dist/mtg-rfid-companion.bin
release-dist/full-flash-bundle-${{ gitea.ref_name || 'latest' }}.tar.gz
release-dist/full-flash-bundle-${{ gitea.ref_name }}.tar.gz
name: "Release ${{ gitea.ref_name }}"
draft: false
prerelease: false
api_key: ${{ secrets.RELEASE_TOKEN || gitea.token }}
- name: Upload Artifacts to Workflow
uses: actions/upload-artifact@v4
with:
name: mtg-firmware-${{ gitea.ref_name || 'manual' }}
path: release-dist/*