Skip to content

Update build.yml

Update build.yml #139

name: Publish MkDocs to GitHub Pages
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 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@v4
with:
github_token: ${{ secrets.BOT_REPO_TOKEN }}
publish_dir: ./site