New device - Antela SPL-W-TY-PM-FR-RY Plug with Energy Monitoring CB2… #441
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: Deploy API to GitHub Pages | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- master | |
paths: | |
- .github/workflows/gh-pages-api.yml | |
- devices/*.json | |
- profiles/*.json | |
concurrency: gh-pages-deployment | |
jobs: | |
deploy: | |
name: Deploy API to GitHub Pages | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup Python 3.10 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- name: Generate static API | |
run: | | |
python generate_static_api.py | |
- name: Deploy API to GitHub Pages | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
folder: site/api/ | |
target-folder: api/ | |
force: false |