Skip to content

Add energy management support (WHO=18) #44

Add energy management support (WHO=18)

Add energy management support (WHO=18) #44

Workflow file for this run

name: Docs
on:
pull_request:
types: [opened, synchronize, reopened]
push:
branches:
- main
workflow_dispatch:
jobs:
build:
name: Build the docs
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup and Cache Python Poetry
uses: packetcoders/[email protected]
with:
python-version: "3.12"
poetry-version: "1.8.4"
install-args: --with docs
- name: Set git credentials
run: |
git config --global user.name "${{ github.actor }}"
git config --global user.email "${{ github.actor }}@users.noreply.github.com"
- name: Build the docs
id: build
run: poetry run mkdocs build
- name: Upload docs
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
id: deployment
uses: actions/upload-pages-artifact@v3
with:
path: site/
deploy:
name: Deploy the docs
runs-on: ubuntu-latest
needs: build
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
permissions:
contents: read
id-token: write
pages: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4