-
Notifications
You must be signed in to change notification settings - Fork 47
49 lines (42 loc) · 1.17 KB
/
deploy-vercel-dev.yml
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
48
49
name: Web Build & Vercel Deploy DEV
on:
push:
branches:
- develop
paths:
- '.deploy/web/**'
- '.github/workflows/**'
- 'apps/web/**'
- 'package.json'
- 'yarn.lock'
concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '20.11.1'
cache: 'yarn'
- name: Install Packages
run: |
yarn install --frozen-lockfile
- name: Build Web
run: |
yarn build:web
- name: Deploy to Vercel
uses: BetaHuhn/deploy-to-vercel-action@v1
with:
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }} # Required
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Optional
GITHUB_DEPLOYMENT_ENV: Preview
PRODUCTION: false
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID}} #Required
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_WEB_PROJECT_ID}} #Required
WORKING_DIRECTORY: ./
# ALIAS_DOMAINS: |
# appdev.ever.team