File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed
Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change 1- name : Deploy VitePress site to Pages
1+ name : Deploy vitepress docs
22
33on :
44 # Runs on pushes targeting the `main` branch. Change this to `master` if you're
@@ -21,13 +21,14 @@ concurrency:
2121 group : pages
2222 cancel-in-progress : false
2323
24+ defaults :
25+ run :
26+ working-directory : ./docs
27+
2428jobs :
2529 # Build job
2630 build :
2731 runs-on : ubuntu-latest
28- defaults :
29- run :
30- working-directory : ./docs
3132 steps :
3233 - name : Checkout
3334 uses : actions/checkout@v4
@@ -42,16 +43,19 @@ jobs:
4243 with :
4344 node-version : 20
4445 cache : npm # or pnpm / yarn
46+ cache-dependency-path : docs
4547 - name : Setup Pages
4648 uses : actions/configure-pages@v4
4749 - name : Install dependencies
4850 run : npm ci # or pnpm install / yarn install / bun install
51+ working-directory : ./docs
4952 - name : Build with VitePress
5053 run : npm run docs:build # or pnpm docs:build / yarn docs:build / bun run docs:build
54+ working-directory : ./docs
5155 - name : Upload artifact
5256 uses : actions/upload-pages-artifact@v3
5357 with :
54- path : src/.vitepress/dist
58+ path : docs/ src/.vitepress/dist
5559
5660 # Deployment job
5761 deploy :
You can’t perform that action at this time.
0 commit comments