-
Notifications
You must be signed in to change notification settings - Fork 3
37 lines (32 loc) · 986 Bytes
/
release.yaml
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
name: Deploy To Production
on:
push:
tags:
- '*'
jobs:
deploy-production:
name: Run Tests and Deploy to Production
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Cache Dependencies
uses: actions/cache@v4.0.2
with:
path: ~/.bun
key: ${{ runner.os }}-bun-${{ hashFiles('**/bun.lockb') }}
restore-keys: ${{ runner.os }}-bun-
- name: Setup Bun
uses: oven-sh/setup-bun@v1.2.0
- run: bun install
# - name: Run Tests
# run: bun run test
- name: Deploy to Production
uses: amondnet/vercel-action@v25.2.0
id: deploy-vercel-production
with:
vercel-token: ${{ secrets.VERCEL_TOKEN }}
vercel-org-id: ${{ secrets.VERCEL_ORG_ID }}
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID_EXERCISEDB }}
vercel-args: --prod
scope: ${{ secrets.VERCEL_ORG_ID }}