Skip to content

Commit

Permalink
Merge pull request #41 from unb-mds/develop
Browse files Browse the repository at this point in the history
update main
  • Loading branch information
rafgpereira authored Aug 4, 2024
2 parents 1d44904 + ab04d4e commit da25870
Showing 1 changed file with 21 additions and 12 deletions.
33 changes: 21 additions & 12 deletions .github/workflows/deploy-express.yaml
Original file line number Diff line number Diff line change
@@ -1,21 +1,30 @@
name: Vercel Express Deploy
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}

on:
push:
branches:
- main
jobs:
Deploy-Express:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Install Vercel CLI
run: npm install --global vercel@latest
- 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 }}
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 20.

- name: Install dependencies
run: npm install

- name: Build project
run: npm run build

- name: Deploy to Vercel
run: npx vercel --token ${{ secrets.VERCEL_TOKEN }} --prod --confirm
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}

0 comments on commit da25870

Please sign in to comment.