-
-
Notifications
You must be signed in to change notification settings - Fork 24
38 lines (34 loc) · 915 Bytes
/
Copy pathdocs.yml
File metadata and controls
38 lines (34 loc) · 915 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
name: Documentation
on:
push:
branches:
- main
paths:
- ".github/workflows/docs.yml"
- "docs/**"
- "src/**"
- "mkdocs.yml"
permissions:
contents: write
env:
VERSION: 1.x
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v7
- name: Configure Git Credentials
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
- name: Setup Python
uses: actions/setup-python@v6
with:
python-version: 3.x
- name: Install Material for MkDocs
run: pip install mkdocs-material mike
- name: Fetch gh-pages branch
run: git fetch origin gh-pages --depth=1
- name: Deploy latest documentation
run: mike deploy $VERSION --branch gh-pages --push