Skip to content

edit cicd

edit cicd #3

Workflow file for this run

name: Deploy Pango app to Vercel
on:
push:
branches:
- frontend-deploy
jobs:
deploy:
name: Deploy to Vercel
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: "16" # Specify the Node.js version you need
- name: Install dependencies
run: |
cd frontend-hacksg
npm install
- name: Build the frontend
run: |
cd frontend-hacksg
- name: Deploy to Vercel
run: |
npm install -g vercel
cd frontend-hacksg
vercel --prod --token=${{ secrets.VERCEL_TOKEN }} --scope ${{ secrets.VERCEL_ORG_ID }} --project ${{ secrets.VERCEL_PROJECT_ID }}