-
Notifications
You must be signed in to change notification settings - Fork 3
52 lines (41 loc) · 1.21 KB
/
static.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Deploy MkDocs to GitHub Pages
on:
push:
branches: ["main"]
workflow_dispatch:
permissions:
contents: write
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install package and documentation dependencies
run: |
pip install -e .
- name: Install MkDocs and plugins
run: |
pip install mkdocs mkdocs-material mkdocs-autorefs mkdocstrings[python] mkdocs-jupyter pymdown-extensions termynal mkdocs-minify-plugin
- name: Debug environment
run: |
python -m pip freeze
python -m mkdocs --version
- name: Build MkDocs site
run: mkdocs build --verbose
- name: Deploy to GitHub Pages
run: |
git config --global user.name "GitHub Actions"
git config --global user.email "[email protected]"
mkdocs gh-deploy --force --remote-name origin
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}