-
Notifications
You must be signed in to change notification settings - Fork 3
47 lines (37 loc) · 919 Bytes
/
docs.yml
File metadata and controls
47 lines (37 loc) · 919 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
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Publish documentation
on:
push:
branches:
- master
paths:
- .github/workflows/docs.yml
- docs/**
- mkdocs.yml
permissions:
id-token: write
pages: write
jobs:
github-pages:
name: Publish to GitHub Pages
runs-on: ubuntu-latest
environment:
name: github-pages
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python runtime
uses: actions/setup-python@v5
with:
python-version: 3.x
- name: Install dependencies
run: pip install mkdocs-material
- name: Build web pages
run: mkdocs build --site-dir=docs-site
- name: Upload to GitHub Pages
uses: actions/upload-pages-artifact@v3
with:
path: docs-site
- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v4