File tree Expand file tree Collapse file tree 4 files changed +71
-14
lines changed Expand file tree Collapse file tree 4 files changed +71
-14
lines changed Original file line number Diff line number Diff line change 6
6
- develop
7
7
paths-ignore :
8
8
- " docs/**"
9
- workflow_dispatch :
9
+ - " mkdocs.yml"
10
+ - " README.md"
11
+ - " LICENSE"
10
12
11
13
jobs :
12
14
build :
Original file line number Diff line number Diff line change
1
+ # https://squidfunk.github.io/mkdocs-material/publishing-your-site/#with-github-actions
2
+ name : Development Documentation
3
+
4
+ on :
5
+ push :
6
+ branches :
7
+ - develop
8
+ paths :
9
+ - " docs/**"
10
+ - " mkdocs.yml"
11
+
12
+ permissions :
13
+ contents : write
14
+
15
+ jobs :
16
+ deploy :
17
+ runs-on : ubuntu-latest
18
+ steps :
19
+ - uses : actions/checkout@v4
20
+ - name : Configure Git Credentials
21
+ run : |
22
+ git config user.name github-actions[bot]
23
+ git config user.email 41898282+github-actions[bot]@users.noreply.github.com
24
+ - uses : actions/setup-python@v5
25
+ with :
26
+ python-version : 3.x
27
+ - run : echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
28
+ - uses : actions/cache@v4
29
+ with :
30
+ key : mkdocs-material-${{ env.cache_id }}
31
+ path : .cache
32
+ restore-keys : |
33
+ mkdocs-material-
34
+ - run : pip install mkdocs-material mike
35
+ - run : mike deploy --push --update-aliases "${{ vars.NEXT_VERSION }}" dev
Original file line number Diff line number Diff line change 1
- name : Build and Deploy Documentation
1
+ # https://squidfunk.github.io/mkdocs-material/publishing-your-site/#with-github-actions
2
+ name : Documentation
2
3
3
4
on :
4
5
push :
5
- tags :
6
- - v**
7
- workflow_dispatch :
6
+ branches :
7
+ - main
8
+ paths :
9
+ - " docs/**"
10
+ - " mkdocs.yml"
11
+
12
+ permissions :
13
+ contents : write
8
14
9
15
jobs :
10
- build :
11
- name : Documentation
16
+ deploy :
12
17
runs-on : ubuntu-latest
13
18
steps :
14
- - name : Checkout
15
- uses : actions/checkout@v4.1.7
16
-
17
- - name : Deploy MkDocs
18
- uses : mhausenblas/mkdocs-deploy-gh-pages@1.26
19
- env :
20
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
19
+ - uses : actions/checkout@v4
20
+ - name : Configure Git Credentials
21
+ run : |
22
+ git config user.name github-actions[bot]
23
+ git config user.email 41898282+github-actions[bot]@users.noreply.github.com
24
+ - uses : actions/setup-python@v5
25
+ with :
26
+ python-version : 3.x
27
+ - run : echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
28
+ - uses : actions/cache@v4
29
+ with :
30
+ key : mkdocs-material-${{ env.cache_id }}
31
+ path : .cache
32
+ restore-keys : |
33
+ mkdocs-material-
34
+ - run : pip install mkdocs-material mike
35
+ - run : mike deploy --push --update-aliases "${{ vars.THIS_VERSION }}" latest
Original file line number Diff line number Diff line change @@ -33,6 +33,11 @@ theme:
33
33
icon : material/brightness-4
34
34
name : Switch to system preference
35
35
36
+ extra :
37
+ version :
38
+ provider : mike
39
+ alias : true
40
+
36
41
extra_css :
37
42
- stylesheets/cp-button.css
38
43
- stylesheets/fonts.css
You can’t perform that action at this time.
0 commit comments