File tree Expand file tree Collapse file tree 3 files changed +37
-46
lines changed
Expand file tree Collapse file tree 3 files changed +37
-46
lines changed Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+
2+ name : Deploy to Vercel
3+
4+ on :
5+ push :
6+ branches :
7+ - main # Trigger the action when you push to the 'main' branch
8+
9+ jobs :
10+ deploy :
11+ runs-on : ubuntu-latest
12+
13+ steps :
14+ - name : Checkout code
15+ uses : actions/checkout@v3
16+
17+ - name : Set up Node.js
18+ uses : actions/setup-node@v3
19+ with :
20+ node-version : ' 22' # Use the desired Node.js version
21+
22+ - name : Install dependencies
23+ run : npm install
24+
25+ - name : Build Next.js app
26+ run : npm run build
27+
28+ - name : Deploy to Vercel
29+ uses : amondnet/vercel-action@v20
30+ with :
31+ vercel-token : ${{ secrets.VERCEL_TOKEN }} # Use the Vercel token from GitHub secrets
32+ vercel-org-id : ${{ secrets.VERCEL_ORG_ID }} # Vercel Organization ID
33+ vercel-project-id : ${{ secrets.VERCEL_PROJECT_ID }} # Vercel Project ID
34+ vercel-args : ' --prod' # Deploy to production
35+
36+ - name : Check Vercel deployment status
37+ run : echo "Vercel Deployment Complete!"
You can’t perform that action at this time.
0 commit comments