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