File tree Expand file tree Collapse file tree 8 files changed +35
-124
lines changed Expand file tree Collapse file tree 8 files changed +35
-124
lines changed Original file line number Diff line number Diff line change 1
- name : Publish Docs
1
+ name : Deploy
2
2
on :
3
3
push :
4
4
branches :
5
5
- main
6
+ workflow_dispatch :
6
7
permissions :
7
8
contents : write
9
+ pages : write
10
+ id-token : write
8
11
jobs :
9
- deploy :
12
+ build_mkdocs :
10
13
runs-on : ubuntu-latest
11
14
steps :
12
- - uses : actions/checkout@v4
13
- - name : Configure Git Credentials
14
- run : |
15
- git config user.name github-actions[bot]
16
- git config user.email 41898282+github-actions[bot]@users.noreply.github.com
15
+ - name : Checkout code
16
+ uses : actions/checkout@v4
17
+ with :
18
+ fetch-depth : 0
17
19
- uses : actions/setup-python@v5
18
20
with :
19
- python-version : ' 3.12'
20
- - run : echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
21
- - uses : actions/cache@v4
21
+ python-version : 3.12
22
+ - run : pip install \
23
+ mkdocs-material \
24
+ mkdocs-glightbox
25
+ - run : mkdocs gh-deploy --config-file mkdocs.yml --force
26
+ deploy_mkdocs :
27
+ needs : build_mkdocs
28
+ environment :
29
+ name : github-pages
30
+ url : ${{ steps.deployment.outputs.page_url }}
31
+ runs-on : ubuntu-latest
32
+ steps :
33
+ - name : Checkout
34
+ uses : actions/checkout@v4
35
+ with :
36
+ ref : gh-pages
37
+ - name : Setup Pages
38
+ uses : actions/configure-pages@v5
39
+ - name : Upload artifact
40
+ uses : actions/upload-pages-artifact@v3
22
41
with :
23
- key : mkdocs-material-${{ env.cache_id }}
24
- path : .cache
25
- restore-keys : |
26
- mkdocs-material-
27
- - run : pip install mkdocs-material mkdocs-glightbox
28
- - run : mkdocs gh-deploy --force
42
+ path : ' .'
43
+ - name : Deploy to GitHub Pages
44
+ id : deployment
45
+ uses : actions/deploy-pages@v4
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ mkdocs-material
2
+ mkdocs-glightbox
You can’t perform that action at this time.
0 commit comments