File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change 1- # Sample workflow for building and deploying a VitePress site to GitHub Pages
1+ # workflow for building and deploying VitePress docs site to GitHub Pages
22#
3+ # from https://vitepress.dev/guide/deploy
34name : Deploy VitePress site to Pages
45
56on :
6- # Runs on pushes targeting the `main` branch. Change this to `master` if you're
7- # using the `master` branch as the default branch.
87 push :
98 branches : [master]
109
11- # Allows you to run this workflow manually from the Actions tab
1210 workflow_dispatch :
1311
1412# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
@@ -40,13 +38,13 @@ jobs:
4038 uses : actions/setup-node@v4
4139 with :
4240 node-version : 22
43- cache : npm # or pnpm / yarn
41+ cache : yarn # or pnpm / yarn
4442 - name : Setup Pages
4543 uses : actions/configure-pages@v4
4644 - name : Install dependencies
47- run : npm ci # or pnpm install / yarn install / bun install
45+ run : yarn install # or pnpm install / yarn install / bun install
4846 - name : Build with VitePress
49- run : npm run docs:build # or pnpm docs:build / yarn docs:build / bun run docs:build
47+ run : yarn docs:build # or pnpm docs:build / yarn docs:build / bun run docs:build
5048 - name : Upload artifact
5149 uses : actions/upload-pages-artifact@v3
5250 with :
You can’t perform that action at this time.
0 commit comments