Workflow upload artifacts and create release

This commit is contained in:
Djuri Baars 2023-08-29 15:53:10 +02:00
parent 8b9db4d892
commit d5a64f6d4f

View File

@ -1,10 +1,12 @@
name: PlatformIO CI name: BTClock CI
on: [push] on: [push]
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
permissions:
contents: write
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
@ -25,8 +27,18 @@ jobs:
- name: Install PlatformIO Core - name: Install PlatformIO Core
run: pip install --upgrade platformio run: pip install --upgrade platformio
- name: Build BTClock firmare - name: Build BTClock firmware
run: pio run -e esp32wemos-s3-mini_BW run: pio run -e esp32wemos-s3-mini_BW
- name: Build BTClock filesystem - name: Build BTClock filesystem
run: pio run -e esp32wemos-s3-mini_BW --target buildfs run: pio run -e esp32wemos-s3-mini_BW --target buildfs
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
path: |
.pio/build/esp32wemos-s3-mini_BW/*.bin
- name: Create release
uses: ncipollo/release-action@v1
with:
artifacts: "*.bin"