Skip to content

Publish MkDocs to GitHub Pages #86

Publish MkDocs to GitHub Pages

Publish MkDocs to GitHub Pages #86

name: Publish MkDocs to GitHub Pages
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- name: Install Dependencies
run: |
pip install mkdocs mkdocs-material mkdocs-awesome-pages-plugin
- name: Build Site
run: |
mkdocs build
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.BOT_REPO_TOKEN }}
publish_dir: ./site