fix: create release #23
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release Workflow | |
on: | |
push: | |
tags: | |
- '*' | |
jobs: | |
create-release: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.11' | |
- name: Install PlatformIO | |
run: | | |
pip install platformio | |
platformio update | |
- name: Build all Platforms | |
run: platformio run | |
- name: Build FS Images | |
run: | | |
mv data/config.json-template data/config.json | |
platformio run -t buildfs | |
- name: Archive binaries | |
run: | | |
mkdir -p releases/esp32dev releases/esp8266 | |
mv .pio/build/esp32dev/*.bin releases/esp32dev/ | |
mv .pio/build/esp8266/*.bin releases/esp8266/ | |
- name: Upload Binaries | |
uses: actions/upload-artifact@v3 | |
with: | |
name: esp-binaries | |
path: releases | |
- name: Create Release | |
uses: meeDamian/[email protected] | |
with: | |
tag: ${{ github.ref }} | |
files: > | |
releases/esp32dev/*.bin | |
releases/esp8266/*.bin | |
prerelease: true | |
draft: false | |
token: ${{ secrets.GITHUB_TOKEN }} |