Skip to content

Commit 19d5452

Browse files
committed
feat: Add Vercel deployment via GitHub Actions
1 parent c4bb8fe commit 19d5452

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/ci.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,32 @@ jobs:
143143
path: build.log
144144
retention-days: 7
145145

146+
deploy-vercel:
147+
name: Deploy on Vercel
148+
runs-on: ubuntu-latest
149+
needs: build
150+
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
151+
152+
steps:
153+
- name: Checkout code
154+
uses: actions/checkout@v4
155+
156+
- name: Setup Node.js
157+
uses: actions/setup-node@v4
158+
with:
159+
node-version: '18'
160+
cache: 'npm'
161+
162+
- name: Install dependencies
163+
run: npm ci
164+
165+
- name: Deploy on Vercel
166+
uses: UnlyEd/github-action-deploy-on-vercel@v1.2.7
167+
with:
168+
command: 'vercel --prod --token ${{ secrets.VERCEL_TOKEN }}'
169+
env:
170+
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
171+
146172
# E2E Tests - Temporarily disabled
147173
# e2e-tests:
148174
# name: E2E Tests

0 commit comments

Comments
 (0)