Skip to content

Use Improv Serial to set WiFi details #77

Use Improv Serial to set WiFi details

Use Improv Serial to set WiFi details #77

Workflow file for this run

name: PlatformIO CI
on:
pull_request:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Cache pip
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Cache PlatformIO
uses: actions/cache@v4
with:
path: |
~/.cache/pip
~/.platformio
key: ${{ runner.os }}-pio-${{ hashFiles('platformio.ini')}}
restore-keys: |
${{ 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
- name: Archive production artifacts
uses: actions/upload-artifact@v4
with:
name: firmware
path: |
.pio/build/**/*_merged.bin
- run: |
mkdir -p _site/firmware
cp .pio/build/m5knob/firmware_merged.bin _site/firmware/esp32-s3.bin
cp manifest.json _site/firmware/manifest.json
cp static/* _site/
- name: Create GitHub Pages assets
uses: actions/upload-pages-artifact@v3
deploy-pages:
runs-on: ubuntu-latest
needs: build
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
# Deploy to the github-pages environment
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4 # or specific "vX.X.X" version tag for this action