File tree Expand file tree Collapse file tree 3 files changed +10
-12
lines changed Expand file tree Collapse file tree 3 files changed +10
-12
lines changed Original file line number Diff line number Diff line change @@ -24,18 +24,17 @@ jobs:
2424 steps :
2525 - name : Checkout
2626 uses : actions/checkout@v4
27- with :
28- fetch-depth : 0
2927 - name : Setup Node
3028 uses : actions/setup-node@v4
3129 with :
32- node-version : 20
33- - name : Setup Pages
30+ node-version : 22
31+ - id : setup
32+ name : Setup Pages
3433 uses : actions/configure-pages@v4
35- - name : Install dependencies
36- run : npm ci
37- - name : Build with VitePress
38- run : npm run docs:build
34+ - name : Install dependencies and build
35+ run : cd docs && npm ci && npm run docs:build
36+ env :
37+ BASE_PATH : ${{ steps.setup.outputs.base_path }}
3938 - name : Upload artifact
4039 uses : actions/upload-pages-artifact@v3
4140 with :
4443 deploy :
4544 environment :
4645 name : github-pages
47- url : ${{ steps.deployment .outputs.page_url }}
46+ url : ${{ steps.setup .outputs.base_url }}
4847 needs : build
4948 runs-on : ubuntu-latest
50- name : Deploy
5149 steps :
5250 - name : Deploy to GitHub Pages
53- id : deployment
5451 uses : actions/deploy-pages@v4
Original file line number Diff line number Diff line change 1+ import process from "node:process" ;
12import { defineConfig } from "vitepress" ;
23
34const title = "Inertia Django" ;
@@ -7,6 +8,7 @@ const image = `${site}/og_image.png`;
78
89// https://vitepress.dev/reference/site-config
910export default defineConfig ( {
11+ base : process . env . BASE_PATH ,
1012 title : title ,
1113 description : description ,
1214
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments