-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (39 loc) · 1.02 KB
/
dev_deploy.yml
File metadata and controls
47 lines (39 loc) · 1.02 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
46
47
name: Make Development Deployment
on:
push:
branches:
- dev
paths-ignore:
- .gitignore
- .github/**
- README.md
workflow_dispatch:
permissions:
contents: read
concurrency:
group: deployment-dev
cancel-in-progress: true
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: "npm"
- run: npm ci
- name: Push schema changes to database
env:
TURSO_DATABASE_URL: ${{ secrets.DEV_DB_URL }}
TURSO_AUTH_TOKEN: ${{ secrets.DEV_DB_TOKEN }}
run: |
npx drizzle-kit push
- name: Make Development Deployment
env:
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
run: |
npx vercel deploy --target preview --yes --token ${{ secrets.VERCEL_TOKEN }}