File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- name : Deploy Docs to GitHub Pages
2-
1+ name : Documentation
32on :
43 push :
54 branches :
6- - main
75 - master
8- workflow_dispatch :
9-
6+ - main
7+ permissions :
8+ contents : read
9+ pages : write
10+ id-token : write
1011jobs :
11- build-and-deploy :
12+ deploy :
13+ environment :
14+ name : github-pages
15+ url : ${{ steps.deployment.outputs.page_url }}
1216 runs-on : ubuntu-latest
13- permissions :
14- pages : write
15- id-token : write
17+ concurrency :
18+ group : " pages "
19+ cancel-in-progress : true
1620 steps :
17- - name : Checkout repository
18- uses : actions/checkout@v4
19-
20- - name : Setup Node.js
21- uses : actions/setup-node@v4
21+ - uses : actions/configure-pages@v6
22+ - uses : actions/checkout@v6
23+ - uses : actions/setup-python@v6
2224 with :
23- node-version : 18
24-
25- - name : Install dependencies
26- run : |
27- corepack enable
28- corepack prepare pnpm@latest --activate
29- pnpm install --frozen-lockfile
30-
31- - name : Build site (optional)
32- run : |
33- # If you have a docs build step (e.g. docusaurus or static site generator), run it here.
34- echo "No build step defined; publishing raw markdown from /docs"
35-
36- - name : Upload pages artifact
37- uses : actions/upload-pages-artifact@v1
25+ python-version : 3.x
26+ - run : pip install zensical
27+ - run : zensical build --clean
28+ - uses : actions/upload-pages-artifact@v5
3829 with :
39- path : docs
40-
41- deploy :
42- needs : build-and-deploy
43- runs-on : ubuntu-latest
44- steps :
45- - name : Deploy to GitHub Pages
46- uses : actions/deploy-pages@v1
30+ path : site
31+ - uses : actions/deploy-pages@v5
32+ id : deployment
You can’t perform that action at this time.
0 commit comments