Skip to content

Commit 39418cc

Browse files
committed
copy blank env for github pages deploy
1 parent 373079c commit 39418cc

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.github/workflows/pages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
registry-url: 'https://registry.npmjs.org'
3737

3838
- run: npm ci
39-
- run: npm run build
39+
- run: npm run build:github-actions
4040

4141
- name: Setup Pages
4242
uses: actions/configure-pages@v5

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"scripts": {
77
"dev": "vite dev --host",
88
"build": "vite build",
9+
"build:github-actions": "vite build && cp .env_example ./build/.env",
910
"preview": "vite preview",
1011
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
1112
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",

0 commit comments

Comments
 (0)