From e55c2b2ddbac7aa8c43f04b3d3e90764882302b4 Mon Sep 17 00:00:00 2001 From: reptil1990 Date: Fri, 11 Jul 2025 23:30:18 +0200 Subject: [PATCH] .github/workflows/build.yml aktualisiert --- .github/workflows/build.yml | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 855a4c8..d85d57a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,4 +1,4 @@ -name: PlatformIO CI +name: PlatformIO CI (esp32thing only) on: [push] @@ -8,17 +8,32 @@ jobs: 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 PlatformIO Project - run: pio run \ No newline at end of file + - name: Build only esp32thing + run: pio run -e esp32thing + + - name: Rename firmware + run: cp .pio/build/esp32thing/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 }} \ No newline at end of file