File tree Expand file tree Collapse file tree 1 file changed +51
-0
lines changed
Expand file tree Collapse file tree 1 file changed +51
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build & deploy application to Vercel
2+ on :
3+ push :
4+ branches :
5+ - ui-setup
6+
7+ jobs :
8+ lint :
9+ name : Lint
10+ runs-on : ubuntu-latest
11+ steps :
12+ - uses : actions/checkout@v4
13+ - run : npm install
14+ - run : npm run lint
15+
16+ build :
17+ name : Build
18+ runs-on : ubuntu-latest
19+ steps :
20+ - uses : actions/checkout@v4
21+ - run : npm install
22+ - run : npm run build
23+
24+ deploy-production :
25+ name : Deploy (Production)
26+ needs : [lint, build]
27+ runs-on : ubuntu-latest
28+ environment :
29+ name : vercel
30+
31+ defaults :
32+ run :
33+ working-directory : frontend
34+
35+ env :
36+ VERCEL_ORG_ID : ${{ secrets.VERCEL_ORG_ID }}
37+ VERCEL_PROJECT_ID : ${{ secrets.VERCEL_PROJECT_ID }}
38+
39+ steps :
40+ - uses : actions/checkout@v4
41+ - name : Install Vercel CLI
42+
43+ run : npm install --global vercel@latest
44+ - name : Pull Vercel Environment Information
45+ run : vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}
46+
47+ - name : Build Project Artifacts
48+ run : vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}
49+
50+ - name : Deploy Project Artifacts to Vercel
51+ run : vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }}
You can’t perform that action at this time.
0 commit comments