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:
24
24
steps :
25
25
- name : Checkout
26
26
uses : actions/checkout@v4
27
- with :
28
- fetch-depth : 0
29
27
- name : Setup Node
30
28
uses : actions/setup-node@v4
31
29
with :
32
- node-version : 20
33
- - name : Setup Pages
30
+ node-version : 22
31
+ - id : setup
32
+ name : Setup Pages
34
33
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 }}
39
38
- name : Upload artifact
40
39
uses : actions/upload-pages-artifact@v3
41
40
with :
44
43
deploy :
45
44
environment :
46
45
name : github-pages
47
- url : ${{ steps.deployment .outputs.page_url }}
46
+ url : ${{ steps.setup .outputs.base_url }}
48
47
needs : build
49
48
runs-on : ubuntu-latest
50
- name : Deploy
51
49
steps :
52
50
- name : Deploy to GitHub Pages
53
- id : deployment
54
51
uses : actions/deploy-pages@v4
Original file line number Diff line number Diff line change
1
+ import process from "node:process" ;
1
2
import { defineConfig } from "vitepress" ;
2
3
3
4
const title = "Inertia Django" ;
@@ -7,6 +8,7 @@ const image = `${site}/og_image.png`;
7
8
8
9
// https://vitepress.dev/reference/site-config
9
10
export default defineConfig ( {
11
+ base : process . env . BASE_PATH ,
10
12
title : title ,
11
13
description : description ,
12
14
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments