29 lines
675 B
YAML
29 lines
675 B
YAML
name: Build Release
|
|
on:
|
|
push:
|
|
tags: ['v*']
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Setup Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: '3.11'
|
|
|
|
- name: Install PlatformIO
|
|
run: pip install platformio
|
|
|
|
- name: Build firmware
|
|
run: pio run
|
|
|
|
- name: Upload firmware.bin to release
|
|
uses: actions/upload-release-asset@v1
|
|
with:
|
|
upload_url: ${{ gitea.release.upload_url }}
|
|
asset_path: .pio/build/esp32dev/firmware.bin
|
|
asset_name: firmware.bin
|
|
asset_content_type: application/octet-stream |