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
Some checks failed
Build & Release Firmware / Build ESP32 Firmware (push) Failing after 2m50s
This commit is contained in:
@@ -2,6 +2,8 @@ name: Build & Release Firmware
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
tags:
|
tags:
|
||||||
- 'v*'
|
- 'v*'
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
@@ -11,7 +13,7 @@ jobs:
|
|||||||
name: Build ESP32 Firmware
|
name: Build ESP32 Firmware
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
container:
|
||||||
image: espressif/idf:v5.5
|
image: espressif/idf:release-v5.1
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@@ -38,20 +40,21 @@ jobs:
|
|||||||
tar -czvf full-flash-bundle-${{ gitea.ref_name || 'latest' }}.tar.gz *.bin
|
tar -czvf full-flash-bundle-${{ gitea.ref_name || 'latest' }}.tar.gz *.bin
|
||||||
cd ..
|
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
|
- 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
|
continue-on-error: true
|
||||||
with:
|
with:
|
||||||
files: |
|
files: |
|
||||||
release-dist/mtg-rfid-companion.bin
|
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 }}"
|
name: "Release ${{ gitea.ref_name }}"
|
||||||
draft: false
|
draft: false
|
||||||
prerelease: false
|
prerelease: false
|
||||||
api_key: ${{ secrets.RELEASE_TOKEN || gitea.token }}
|
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/*
|
|
||||||
|
|||||||
Reference in New Issue
Block a user