File tree Expand file tree Collapse file tree 2 files changed +29
-24
lines changed
Expand file tree Collapse file tree 2 files changed +29
-24
lines changed Original file line number Diff line number Diff line change 77 - main
88
99permissions :
10- contents : write
10+ contents : read
1111 pages : write
1212 id-token : write
1313
@@ -17,40 +17,41 @@ concurrency:
1717
1818jobs :
1919 build :
20+ name : Build
2021 runs-on : ubuntu-latest
2122 steps :
22- - name : Checkout code
23- uses : actions/checkout@v4
23+ - uses : actions/checkout@v3
2424
25- - name : Install pnpm
26- uses : pnpm/action-setup@v4
25+ - uses : pnpm/action-setup@v2
2726 with :
28- version : 10
27+ version : latest
2928
30- - name : Setup Node.js & cache pnpm
31- uses : actions/setup-node@v4
29+ - uses : actions/setup-node@v4
3230 with :
3331 node-version : " 22"
3432 cache : " pnpm"
3533
36- - name : Install dependencies
34+ - name : install
3735 run : pnpm install --frozen-lockfile
3836
39- - name : Build
40- run : pnpm run build
37+ - name : build
38+ run : pnpm build
4139 env :
42- BASE_PATH : /IME/
40+ BASE_PATH : " /IME/"
4341
44- - name : Upload artifact
42+ - name : upload artifact
4543 uses : actions/upload-pages-artifact@v3
4644 with :
47- path : " ./. output/public"
45+ path : " .output/public"
4846
49- - name : create .nojekyll
50- run : touch .output/public/.nojekyll
51-
52- - name : deploy pages
53- 54- with :
55- branch : gh-pages
56- folder : .output/public
47+ deploy :
48+ name : Deploy
49+ needs : build
50+ runs-on : ubuntu-latest
51+ environment :
52+ name : github-pages
53+ url : ${{ steps.deployment.outputs.page_url }}
54+ steps :
55+ - name : Deploy to GitHub Pages
56+ id : deployment
57+ uses : actions/deploy-pages@v4
Original file line number Diff line number Diff line change @@ -5,10 +5,14 @@ import eslint from "vite-plugin-eslint";
55import Icons from "unplugin-icons/vite" ;
66
77export default defineConfig ( {
8- ssr : true ,
98 server : {
109 baseURL : process . env . BASE_PATH ,
11- preset : "github_pages" ,
10+ static : true ,
11+ prerender : {
12+ failOnError : true ,
13+ routes : [ "/" ] ,
14+ crawlLinks : true ,
15+ } ,
1216 } ,
1317 vite : {
1418 plugins : [
You can’t perform that action at this time.
0 commit comments