Files
AquaMasterMQTT/.github/workflows/build.yml
2025-07-26 17:43:27 +02:00

38 lines
902 B
YAML

on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: |
~/.cache/pip
~/.platformio/.cache
key: ${{ runner.os }}-pio
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install PlatformIO Core
run: pip install --upgrade platformio
- name: Build only esp32thing_CI
run: pio run -e esp32thing_CI
- name: Rename firmware
run: cp .pio/build/esp32thing_CI/firmware.bin firmware.bin
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
name: "esp32thing Firmware ${{ github.ref_name }}"
tag_name: "${{ github.ref_name }}"
files: firmware.bin
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}