-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (27 loc) · 958 Bytes
/
mkdocs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Deploy MkDocs Site
on:
push:
branches:
- master # Change this to your default branch if it's not master.
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.10' # Ensure this matches the Python version you use locally.
- name: Install Requirements
run: |
python -m pip install --upgrade pip
pip install -r requirements-doc.txt # This file should list mkdocs and any other packages.
- name: Build and deploy MkDocs
run: |
mkdocs build --verbose # Build the site.
mkdocs gh-deploy --force --verbose # Deploy the site to the gh-pages branch.
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Use the provided GITHUB_TOKEN for authentication.