-
Notifications
You must be signed in to change notification settings - Fork 2
42 lines (34 loc) · 969 Bytes
/
convex_prod.yaml
File metadata and controls
42 lines (34 loc) · 969 Bytes
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
name: convex (prod)
on:
push:
branches:
- prod
paths:
- "packages/server/**"
jobs:
deploy:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./packages/server
environment: deploy-convex
env:
DOPPLER_TOKEN: ${{ secrets.DOPPLER_TOKEN }}
CONVEX_DEPLOY_KEY: ${{ secrets.CONVEX_DEPLOY_KEY }}
steps:
- name: 💾 Checkout code
uses: actions/checkout@v4
- name: 📦 Setup bun
uses: oven-sh/setup-bun@v2
- name: 📦 Install dependencies
run: bun install
- name: 🔑 Install Doppler CLI
uses: dopplerhq/cli-action@v3
- name: 🔄 Sync environment variables to Convex
run: |
doppler secrets download --no-file --format env-no-quotes | \
while IFS='=' read -r key value; do
bunx convex env set "$key" "$value"
done
- name: 🚀 Deploy Convex
run: bunx convex deploy