Skip to content

Commit f23d2fd

Browse files
committed
ci(package.json): 添加针对GitHub部署的script build:github
1 parent 74b1983 commit f23d2fd

File tree

3 files changed

+2
-1
lines changed

3 files changed

+2
-1
lines changed

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
uses: actions/checkout@v2
1414

1515
- name: build
16-
run: npm install && npm run build
16+
run: npm install && npm run build:github # 部署至GitHub需要配置,base路径
1717

1818
- name: Deploy
1919
uses: peaceiris/actions-gh-pages@v3

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
"dev": "vite",
2929
"build": "vite build",
3030
"build:check":"vue-tsc --noEmit && vite build",
31+
"build:github":"vite build --base=/vite-vue3-ts/",
3132
"build:no-cache": "yarn clean:cache && npm run build",
3233
"preview": "vite preview",
3334
"clean:cache": "rimraf node_modules/.cache/ && rimraf node_modules/.vite",

src/assets/images/login_logo.png

-1 KB
Binary file not shown.

0 commit comments

Comments
 (0)