Skip to content

Commit b7a539c

Browse files
committed
feat: Add vercel development deployment
1 parent 88f984b commit b7a539c

File tree

2 files changed

+34
-6460
lines changed

2 files changed

+34
-6460
lines changed

.github/workflows/main.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Vercel development Deployment
2+
env:
3+
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
4+
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
5+
on:
6+
push:
7+
branches:
8+
- main
9+
jobs:
10+
Deploy-development:
11+
runs-on: ubuntu-latest
12+
steps:
13+
#INSTALL NODEJS & NPM ON VERCEL
14+
- uses: actions/checkout@v2
15+
- name: Install Node.js
16+
uses: actions/setup-node@v3
17+
18+
- name: Install npm
19+
uses: actions/setup-node@v3
20+
with:
21+
node-version: "20"
22+
registry-url: "https://registry.npmjs.org/"
23+
#INSTALL DEPENDENCIES
24+
- name: Install dependencies
25+
run: npm install
26+
#INSTALL VERCEL CLI IN SERVER.
27+
- name: Install Vercel CLI
28+
run: npm install --global vercel@latest
29+
- name: Pull Vercel Environment Information
30+
run: vercel pull --yes --environment=development --token=${{ secrets.VERCEL_TOKEN }}
31+
- name: Build Project Artifacts
32+
run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}
33+
- name: Deploy Project Artifacts to Vercel
34+
run: vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }}

0 commit comments

Comments
 (0)