docs(docs): updates documentation on my home assistant setup #8
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 MkDocs | |
on: | |
push: | |
branches: | |
- master # Change this if your default branch is different | |
permissions: | |
contents: write # Allows pushing to gh-pages | |
pages: write # Allows GitHub Pages deployment | |
id-token: write # Required for publishing # This allows pushing to gh-pages | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.x' | |
- name: Install MkDocs | |
run: pip install mkdocs mkdocs-material | |
- name: Deploy to GitHub Pages | |
run: mkdocs gh-deploy --force --remote-name origin --remote-branch gh-pages | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |