File tree Expand file tree Collapse file tree 1 file changed +12
-13
lines changed
Expand file tree Collapse file tree 1 file changed +12
-13
lines changed Original file line number Diff line number Diff line change 1- name : Publish 1.20.1 docs via GitHub Pages
1+ name : Publish docs via GitHub Pages
22on :
33 workflow_dispatch :
44 push :
5- branches : [1.20.1]
5+ branches : [" 1.20.1", "1.21" ]
66 paths : ['docs/**']
77
88permissions :
9- contents : read
10- pages : write
11- id-token : write
9+ contents : write
1210
1311concurrency :
1412 group : ' pages'
@@ -18,24 +16,25 @@ jobs:
1816 build :
1917 name : build docs
2018 runs-on : ubuntu-latest
19+ env :
20+ GIT_COMMITTER_NAME : ci-bot
21+ GIT_COMMITTER_EMAIL :
[email protected] 22+ GIT_AUTHOR_NAME : ci-bot
23+ GIT_AUTHOR_EMAIL :
[email protected] 2124 defaults :
2225 run :
2326 working-directory : ' ./docs'
2427 steps :
2528 - uses : actions/checkout@v4
2629 with :
27- ref : ' 1.20.1 '
28- sparse-checkout : ' ./docs '
30+ ref : ' ${{ github.ref_name }} '
31+ fetch-depth : 0
2932 - uses : actions/setup-python@v4
3033 with :
3134 python-version : ' 3.11'
3235 cache : ' pip'
3336 - run : pip install -r ./requirements.txt
34- - uses : actions/cache@v4
35- with :
36- key : ' mkdocs-cache'
37- path : ' ./docs/.cache'
38- - name : Deploy 1.20.1 pages to gh-pages branch
39- run : mike deploy 1.20.1 --push
37+ - name : Deploy pages to gh-pages branch
38+ run : mike deploy "${{ github.ref_name }}" --push
4039 - name : Ensure 1.20.1 is the default version
4140 run : mike set-default 1.20.1 --push
You can’t perform that action at this time.
0 commit comments