Skip to content

Commit 67c1e58

Browse files
committed
mmmm
1 parent 660a964 commit 67c1e58

File tree

2 files changed

+29
-24
lines changed

2 files changed

+29
-24
lines changed

.github/workflows/cd.yml

Lines changed: 23 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
- main
88

99
permissions:
10-
contents: write
10+
contents: read
1111
pages: write
1212
id-token: write
1313

@@ -17,40 +17,41 @@ concurrency:
1717

1818
jobs:
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-
uses: JamesIves/[email protected]
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

app.config.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,14 @@ import eslint from "vite-plugin-eslint";
55
import Icons from "unplugin-icons/vite";
66

77
export 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: [

0 commit comments

Comments
 (0)