File tree Expand file tree Collapse file tree 1 file changed +16
-16
lines changed Expand file tree Collapse file tree 1 file changed +16
-16
lines changed Original file line number Diff line number Diff line change 1- name : Deploy Documentation
1+ name : Build and Deploy Docs
22
33on :
44 push :
5- branches :
6- - main # or whichever branch you want to trigger on
5+ branches : [main] # deploy docs only when pushing to main
6+ workflow_dispatch : # allow manual trigger
77
88jobs :
9- build-and-deploy :
9+ docs :
1010 runs-on : ubuntu-latest
1111
1212 steps :
13- - uses : actions/checkout@v4
14- with :
15- submodules : recursive
13+ - name : Checkout repository
14+ uses : actions/checkout@v4
1615
17- - name : Setup Node.js & pnpm
16+ - name : Setup Node.js
1817 uses : actions/setup-node@v4
1918 with :
2019 node-version : 18
21- cache : " pnpm"
20+ cache : pnpm
2221
23- - name : Install dependencies
24- run : |
25- corepack enable
26- pnpm install
22+ - name : Setup pnpm
23+ uses : pnpm/action-setup@v2
24+ with :
25+ version : 9
26+ run_install : true
2727
2828 - name : Build docs
29- run : pnpm build
29+ run : pnpm run build
3030
3131 - name : Deploy to GitHub Pages
32- uses : peaceiris/actions-gh-pages@v4
32+ uses : peaceiris/actions-gh-pages@v3
3333 with :
3434 github_token : ${{ secrets.GITHUB_TOKEN }}
35- publish_dir : build/
35+ publish_dir : ./build
You can’t perform that action at this time.
0 commit comments