mirror of
https://github.com/dreamhunter2333/cloudflare_temp_email.git
synced 2026-08-28 11:37:42 +08:00
fix: CI (#471)
This commit is contained in:
@@ -30,13 +30,13 @@ jobs:
|
|||||||
run: cd frontend && pnpm install --no-frozen-lockfile && pnpm build:release
|
run: cd frontend && pnpm install --no-frozen-lockfile && pnpm build:release
|
||||||
|
|
||||||
- name: Zip Frontend dist
|
- name: Zip Frontend dist
|
||||||
run: cd frontend/dist/ && zip -r frontend.zip *
|
run: cd frontend/dist/ && zip -r frontend.zip * && mv frontend.zip ../
|
||||||
|
|
||||||
- name: Build Telegram Frontend
|
- name: Build Telegram Frontend
|
||||||
run: cd frontend && pnpm install --no-frozen-lockfile && pnpm build:telegram
|
run: cd frontend && pnpm install --no-frozen-lockfile && pnpm build:telegram:release
|
||||||
|
|
||||||
- name: Zip Telegram Frontend dist
|
- name: Zip Telegram Frontend dist
|
||||||
run: cd frontend/dist/ && zip -r telegram-frontend.zip *
|
run: cd frontend/dist/ && zip -r telegram-frontend.zip * && mv telegram-frontend.zip ../
|
||||||
|
|
||||||
- name: cp wrangler.toml
|
- name: cp wrangler.toml
|
||||||
run: cd worker && cp wrangler.toml.template wrangler.toml
|
run: cd worker && cp wrangler.toml.template wrangler.toml
|
||||||
@@ -48,6 +48,6 @@ jobs:
|
|||||||
uses: softprops/action-gh-release@v2
|
uses: softprops/action-gh-release@v2
|
||||||
with:
|
with:
|
||||||
files: |
|
files: |
|
||||||
frontend/dist/frontend.zip
|
frontend/frontend.zip
|
||||||
frontend/dist/telegram-frontend.zip
|
frontend/telegram-frontend.zip
|
||||||
worker/dist/worker.js
|
worker/dist/worker.js
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
"build:release": "vite build -m example --emptyOutDir",
|
"build:release": "vite build -m example --emptyOutDir",
|
||||||
"build:pages": "vite build -m pages --emptyOutDir",
|
"build:pages": "vite build -m pages --emptyOutDir",
|
||||||
"build:telegram": "VITE_IS_TELEGRAM=true vite build -m prod --emptyOutDir",
|
"build:telegram": "VITE_IS_TELEGRAM=true vite build -m prod --emptyOutDir",
|
||||||
|
"build:telegram:release": "VITE_IS_TELEGRAM=true vite build -m example --emptyOutDir",
|
||||||
"preview": "vite preview",
|
"preview": "vite preview",
|
||||||
"deploy:telegram": "npm run build:telegram && wrangler pages deploy ./dist --branch production",
|
"deploy:telegram": "npm run build:telegram && wrangler pages deploy ./dist --branch production",
|
||||||
"deploy:actions:telegram": "npm run build:telegram && wrangler pages deploy ./dist",
|
"deploy:actions:telegram": "npm run build:telegram && wrangler pages deploy ./dist",
|
||||||
|
|||||||
Reference in New Issue
Block a user