-
Notifications
You must be signed in to change notification settings - Fork 8
45 lines (38 loc) · 1.28 KB
/
deploy.yml
File metadata and controls
45 lines (38 loc) · 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Deploy to console.botschat.app
on:
push:
branches: [main]
jobs:
deploy:
runs-on: ubuntu-latest
environment: production
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 24
- name: Install dependencies
run: npm ci
- name: Build web
run: npm run build -w packages/web
env:
VITE_FIREBASE_API_KEY: AIzaSyA8NdosgijoZoOSTHoRY4XA5WH-58OF3Yk
VITE_FIREBASE_AUTH_DOMAIN: botschat-130ff.firebaseapp.com
VITE_FIREBASE_PROJECT_ID: botschat-130ff
VITE_GA_MEASUREMENT_ID: G-HKJNG1X0JE
- name: Deploy to Cloudflare
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
command: deploy --config wrangler.toml
workingDirectory: .
- name: Apply D1 migrations (remote)
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
command: d1 migrations apply botschat-db --remote --config wrangler.toml
workingDirectory: .