-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (26 loc) · 843 Bytes
/
Copy pathdocs.yml
File metadata and controls
33 lines (26 loc) · 843 Bytes
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
name: Deploy Docs
on:
push:
branches:
- main # Triggers the deployment pipeline anytime code is pushed to main
jobs:
build-deploy:
runs-on: ubuntu-latest
# CRITICAL FIX: Grants the GITHUB_TOKEN write access to push the compiled site to gh-pages
permissions:
contents: write
steps:
- name: ⬇️ Checkout Repository
uses: actions/checkout@v7
- name: 🐍 Set up Python
uses: actions/setup-python@v7
with:
python-version: '3.11'
cache: 'pip' # Speeds up subsequent pipeline runs
- name: 📦 Install Documentation Dependencies
run: |
python -m pip install --upgrade pip
pip install mkdocs-material mkdocs
- name: 🚀 Build and Deploy to GitHub Pages
run: |
mkdocs gh-deploy --force