-
Notifications
You must be signed in to change notification settings - Fork 2.2k
37 lines (34 loc) · 1.32 KB
/
bridge-ui-preview.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
name: Vercel Preview Deployment
env:
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
on:
push:
branches-ignore:
- main
- release-please-*
paths:
- "packages/bridge-ui/**"
jobs:
Deploy-Preview:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- project: "Public"
org_id: ${{ secrets.VERCEL_ORG_ID}}
project_id: ${{ secrets.VERCEL_PROJECT_ID_BRIDGE_UI}}
- project: "Internal"
org_id: ${{ secrets.VERCEL_ORG_ID }}
project_id: ${{ secrets.VERCEL_PROJECT_ID_BRIDGE_UI_INTERNAL}}
steps:
- uses: actions/checkout@v2
- name: Install Vercel CLI
run: npm install --global vercel@latest
- name: Setup Vercel Environment for ${{ matrix.project }}
run: |
vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }} --scope=${{ matrix.org_id }} --project-id=${{ matrix.project_id }}
vercel link --token=${{ secrets.VERCEL_TOKEN }} --confirm --name=${{ matrix.project }} --scope=${{ matrix.org_id }}
- name: Build Project Artifacts for ${{ matrix.project }}
run: vercel build --token=${{ secrets.VERCEL_TOKEN }}
- name: Deploy Project Artifacts to Vercel for ${{ matrix.project }}
run: vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }}