Skip to content

Commit

Permalink
chore: vercel deploy action
Browse files Browse the repository at this point in the history
  • Loading branch information
enzomanuelmangano committed Sep 13, 2024
1 parent 453902a commit d162e53
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/vercel-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Deploy to Vercel

on:
push:
branches:
- docs/web-support-setup
pull_request:
types: [closed]
branches:
- docs/web-support-setup

jobs:
deploy:
runs-on: ubuntu-latest
if: github.event.pull_request.merged == true || github.event_name == 'push'

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '18'

- name: Install Vercel CLI
run: npm install -g vercel

- name: Pull Vercel Environment Information
run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}

- name: Build Project Artifacts
run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}

- name: Deploy Project Artifacts to Vercel
run: vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }}

0 comments on commit d162e53

Please sign in to comment.