Compare commits

..

No commits in common. "5ff3864d9da52c2f74fd6d76bfa2d7c3c8fd9aa7" and "cf0ba20637ba41c23e114e1e9809b86866c198af" have entirely different histories.

3 changed files with 52 additions and 54 deletions

View File

@ -4,57 +4,60 @@ on:
workflow_call: workflow_call:
inputs: inputs:
version: version:
required: true
type: string type: string
required: true
changelog: changelog:
required: true
type: string type: string
required: true
permissions:
contents: write
jobs: jobs:
build: release:
runs-on: ubuntu-latest runs-on: gitea-runner-1
steps: steps:
- uses: actions/checkout@v4 - name: Debug Info
run: |
- name: Set up Python echo "Version: ${{ inputs.version }}"
uses: actions/setup-python@v4 echo "Changelog: ${{ inputs.changelog }}"
with: echo "Tag: ${GITHUB_REF#refs/tags/}"
python-version: '3.x'
- uses: actions/checkout@v4
- name: Install dependencies
run: | - name: Set up Python
python -m pip install --upgrade pip uses: actions/setup-python@v4
pip install --upgrade platformio esptool with:
python-version: '3.x'
- name: Build Firmware
run: | - name: Install dependencies
pio run -t buildfs run: |
pio run python -m pip install --upgrade pip
pip install platformio esptool
- name: Merge firmware and SPIFFS
run: | - name: Build
esptool.py --chip esp32 merge_bin \ run: |
--flash_mode dio \ pio run -t buildfs
--flash_freq 40m \ pio run
--flash_size 4MB \
-o .pio/build/esp32dev/filaman_full.bin \ - name: Create full firmware
0x1000 .pio/build/esp32dev/bootloader.bin \ run: |
0x8000 .pio/build/esp32dev/partitions.bin \ esptool.py --chip esp32 merge_bin \
0x10000 .pio/build/esp32dev/firmware.bin \ --flash_mode dio \
0x290000 .pio/build/esp32dev/spiffs.bin --flash_freq 40m \
--flash_size 4MB \
- name: Prepare OTA firmware -o .pio/build/esp32dev/filaman_full.bin \
run: cp .pio/build/esp32dev/firmware.bin .pio/build/esp32dev/filaman_ota.bin 0x1000 .pio/build/esp32dev/bootloader.bin \
0x8000 .pio/build/esp32dev/partitions.bin \
- name: Create GitHub Release 0x10000 .pio/build/esp32dev/firmware.bin \
env: 0x290000 .pio/build/esp32dev/spiffs.bin
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} cp .pio/build/esp32dev/firmware.bin .pio/build/esp32dev/filaman_ota.bin
run: |
gh release create "${{ github.ref_name }}" \ - name: Create Release
--title "Release ${{ inputs.version }}" \ run: |
--notes "${{ inputs.changelog }}" \ TAG="${GITHUB_REF#refs/tags/}"
".pio/build/esp32dev/filaman_full.bin#filaman_full.bin" \ curl -X POST "${GITEA_API_URL}/repos/${GITEA_REPOSITORY}/releases" \
".pio/build/esp32dev/filaman_ota.bin#filaman_ota.bin" -H "Authorization: token ${GITEA_TOKEN}" \
-H "Content-Type: application/json" \
-d "{\"tag_name\":\"$TAG\",\"name\":\"Release ${{ inputs.version }}\",\"body\":\"${{ inputs.changelog }}\",\"draft\":false,\"prerelease\":false}"
env:
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
GITEA_API_URL: ${{ secrets.GITEA_API_URL }}
GITEA_REPOSITORY: ${{ secrets.GITEA_REPOSITORY }}

View File

@ -1,10 +1,5 @@
# Changelog # Changelog
## [1.2.23] - 2025-02-19
### Added
- update Gitea release workflow and increment version to 1.2.23
## [1.2.22] - 2025-02-19 ## [1.2.22] - 2025-02-19
### Added ### Added
- update Gitea runner configuration and increment version to 1.2.22 - update Gitea runner configuration and increment version to 1.2.22

View File

@ -9,7 +9,7 @@
; https://docs.platformio.org/page/projectconf.html ; https://docs.platformio.org/page/projectconf.html
[common] [common]
version = "1.2.23" version = "1.2.22"
[env:esp32dev] [env:esp32dev]
platform = espressif32 platform = espressif32