-
Notifications
You must be signed in to change notification settings - Fork 61
34 lines (28 loc) · 862 Bytes
/
deploy-docs.yml
File metadata and controls
34 lines (28 loc) · 862 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
34
name: Deploy Documentation
on:
push:
tags:
- '*' # Trigger on any tag
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: write # Needed to deploy to gh-pages
steps:
- name: Checkout code
uses: actions/checkout@v6
with:
fetch-depth: 0 # Fetch all history for all tags and branches
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install dependencies
run: |
pip install mkdocs
- name: Build documentation
run: mkdocs build
- name: Deploy to GitHub Pages
run: mkdocs gh-deploy --force --clean
# The GITHUB_TOKEN is automatically provided by GitHub Actions
# and has the necessary permissions if `permissions: contents: write` is set for the job.