Skip to content

👷 Add deployment of mkdocs site. #2

👷 Add deployment of mkdocs site.

👷 Add deployment of mkdocs site. #2

Workflow file for this run

name: Deploy MkDocs to GitHub Pages
on:
push:
branches:
- develop # Set this to your default branch
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.x' # Set this to the Python version you're using
- name: Install dependencies
run: |
pip install mkdocs-material # or just 'mkdocs' if you're using the default theme
- name: Build site
run: mkdocs build -f config/mkdocs.yml
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./site # Set this to your 'site_dir' if you have a custom build directory