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 static content to Pages
1+ name : Publish Docs
22
33on :
44 push :
55 branches : ["main"]
66 paths :
77 - " docs/**"
8+ - " .github/workflows/deploy-docs.yml"
89 workflow_dispatch :
910
1011permissions :
2728 name : github-pages
2829 url : ${{ steps.deployment.outputs.page_url }}
2930 runs-on : ubuntu-latest
31+ defaults :
32+ run :
33+ working-directory : docs
3034 steps :
3135 - name : Checkout
3236 uses : actions/checkout@v4
@@ -39,19 +43,17 @@ jobs:
3943 with :
4044 node-version : lts/*
4145 cache : " pnpm"
46+ cache-dependency-path : " docs/pnpm-lock.yaml"
4247 - name : Install dependencies
4348 run : pnpm install --frozen-lockfile
44- working-directory : docs
4549 - name : Build
4650 run : pnpm run build
47- working-directory : docs
4851 - name : Setup Pages
4952 uses : actions/configure-pages@v5
5053 - name : Upload artifact
5154 uses : actions/upload-pages-artifact@v3
5255 with :
53- path : " ./docs/dist"
54- working-directory : docs
56+ path : " ./docs/docs/dist"
5557 - name : Deploy to GitHub Pages
5658 id : deployment
5759 uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments