File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed
Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments