-
Notifications
You must be signed in to change notification settings - Fork 2
44 lines (37 loc) · 975 Bytes
/
deploy-vercel.yml
File metadata and controls
44 lines (37 loc) · 975 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
43
44
name: Deploy to Vercel
on:
push:
branches:
- main
- master
paths:
- 'frontend/**'
pull_request:
paths:
- 'frontend/**'
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install dependencies
working-directory: frontend
run: bun install --frozen-lockfile
- name: Build Next.js
working-directory: frontend
run: bun run build
env:
SKIP_ENV_VALIDATION: 1
- name: Deploy to Vercel (Production)
uses: amondnet/vercel-action@v25
with:
vercel-token: ${{ secrets.VERCEL_TOKEN }}
vercel-org-id: ${{ secrets.VERCEL_ORG_ID }}
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID }}
working-directory: ./frontend
vercel-args: '--prod'