File tree Expand file tree Collapse file tree 1 file changed +15
-14
lines changed
Expand file tree Collapse file tree 1 file changed +15
-14
lines changed Original file line number Diff line number Diff line change @@ -2,27 +2,28 @@ name: ci
22on :
33 push :
44 branches :
5+ - master
56 - main
67permissions :
7- contents : write
8+ contents : read
9+ pages : write
10+ id-token : write
811jobs :
912 deploy :
13+ environment :
14+ name : github-pages
15+ url : ${{ steps.deployment.outputs.page_url }}
1016 runs-on : ubuntu-latest
1117 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
18+ - uses : actions/configure-pages@v5
19+ - uses : actions/checkout@v5
1720 - uses : actions/setup-python@v5
1821 with :
1922 python-version : 3.x
20- - run : echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
21- - uses : actions/cache@v4
23+ - run : pip install zensical
24+ - run : zensical build --clean
25+ - uses : actions/upload-pages-artifact@v4
2226 with :
23- key : mkdocs-material-${{ env.cache_id }}
24- path : .cache
25- restore-keys : |
26- mkdocs-material-
27- - run : pip install -r requirements.txt
28- - run : zensical build --clean
27+ path : site
28+ - uses : actions/deploy-pages@v4
29+ id : deployment
You can’t perform that action at this time.
0 commit comments