This commit is contained in:
@@ -1,9 +1,9 @@
|
|||||||
name: Deploy Project to Vercel
|
name: Deploy to Vercel
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- '**'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
@@ -13,7 +13,7 @@ jobs:
|
|||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v6
|
||||||
|
|
||||||
- name: Setup Node.js
|
- name: Setup Node.js
|
||||||
uses: actions/setup-node@v6
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: '20'
|
node-version: '20'
|
||||||
cache: 'npm'
|
cache: 'npm'
|
||||||
@@ -22,19 +22,10 @@ jobs:
|
|||||||
run: npm install --global vercel@latest
|
run: npm install --global vercel@latest
|
||||||
|
|
||||||
- name: Pull Vercel Environment Information
|
- name: Pull Vercel Environment Information
|
||||||
env:
|
|
||||||
VERCEL_ORG_ID: ${{ vars.VERCEL_ORG_ID }}
|
|
||||||
VERCEL_PROJECT_ID: ${{ vars.VERCEL_PROJECT_ID }}
|
|
||||||
run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}
|
run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}
|
||||||
|
|
||||||
- name: Build Project Artifacts
|
- name: Build Project Artifacts
|
||||||
env:
|
|
||||||
VERCEL_ORG_ID: ${{ vars.VERCEL_ORG_ID }}
|
|
||||||
VERCEL_PROJECT_ID: ${{ vars.VERCEL_PROJECT_ID }}
|
|
||||||
run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}
|
run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}
|
||||||
|
|
||||||
- name: Deploy Project Artifacts to Vercel
|
- name: Deploy Project Artifacts to Vercel
|
||||||
env:
|
|
||||||
VERCEL_ORG_ID: ${{ vars.VERCEL_ORG_ID }}
|
|
||||||
VERCEL_PROJECT_ID: ${{ vars.VERCEL_PROJECT_ID }}
|
|
||||||
run: vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }}
|
run: vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }}
|
||||||
|
|||||||
Reference in New Issue
Block a user