Merge branch 'master' of https://github.com/toblum/ESPTeamsPresence #130
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: BuildAndRelease | |
on: push | |
jobs: | |
main: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- name: Setup Python | |
uses: actions/setup-python@master | |
with: | |
python-version: '3.x' | |
- name: Install Platform IO | |
run: | | |
python -m pip install --upgrade pip | |
pip install -U platformio | |
- name: Build | |
run: platformio run -e esp32doit-devkit-v1 -e esp32doit-devkit-v1-nocertcheck | |
- name: Rename release files | |
run: mv .pio/build/esp32doit-devkit-v1-nocertcheck/firmware.bin .pio/build/esp32doit-devkit-v1-nocertcheck/firmware-nocertcheck.bin | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
files: | | |
.pio/build/esp32doit-devkit-v1/firmware.bin | |
.pio/build/esp32doit-devkit-v1-nocertcheck/firmware-nocertcheck.bin | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |