File tree Expand file tree Collapse file tree 5 files changed +51
-61
lines changed Expand file tree Collapse file tree 5 files changed +51
-61
lines changed Original file line number Diff line number Diff line change 33 "type" : " module" ,
44 "scripts" : {
55 "dev" : " vite" ,
6- "build" : " vite build"
6+ "build" : " vite build --emptyOutDir "
77 },
88 "devDependencies" : {
99 "@vitejs/plugin-vue" : " ^5.2.1" ,
Original file line number Diff line number Diff line change @@ -23,4 +23,7 @@ export default defineConfig({
2323 } ) ,
2424 ] ,
2525 base : '/tools/' ,
26+ build : {
27+ outDir : import . meta. dirname + '/../../.deploy/tools' ,
28+ } ,
2629} ) ;
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ name : main
2+
3+ on :
4+ push :
5+ branches : [master]
6+
7+ jobs :
8+ build :
9+ name : Build
10+ runs-on : ubuntu-latest
11+ steps :
12+ - name : Checkout
13+ uses : actions/checkout@v4
14+ - name : Setup Node
15+ uses : actions/setup-node@v4
16+ with :
17+ node-version : 23
18+ - name : Setup Pages
19+ uses : actions/configure-pages@v4
20+ - name : Build Blog
21+ working-directory : .apps/blog
22+ run : |
23+ npm ci
24+ npm run docs:build
25+ - name : Build Tools
26+ working-directory : .apps/tools
27+ run : |
28+ npm ci
29+ npm run build
30+ - name : Upload artifact
31+ uses : actions/upload-pages-artifact@v3
32+ with :
33+ path : .deploy
34+
35+ deploy :
36+ needs : build
37+ permissions :
38+ pages : write
39+ id-token : write
40+ environment :
41+ name : github-pages
42+ runs-on : ubuntu-latest
43+ name : Deploy
44+ steps :
45+ - name : Deploy to GitHub Pages
46+ id : deployment
47+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments