Skip to content

Merge pull request #61 from include-davis/fix/carousel #31

Merge pull request #61 from include-davis/fix/carousel

Merge pull request #61 from include-davis/fix/carousel #31

Workflow file for this run

name: Staging Deployment
on:
push:
branches:
- "main"
jobs:
deploy_staging:
name: Deploy Staging
runs-on: ubuntu-latest
environment:
name: staging
url: ${{ vars.NEXT_APP_BASE_URL }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install node
uses: actions/setup-node@v4
with:
node-version: "21.1.0"
- name: Install dependencies
run: npm install
- name: Lint and build code, then publish to Vercel
run: >
npx vercel
--token ${{ secrets.VERCEL_TOKEN }}
-n ${{ vars.VERCEL_PROJECT }}
--yes
--prod
--env CMS_BASE_URL=${{ vars.CMS_BASE_URL }}
--build-env CMS_BASE_URL=${{ vars.CMS_BASE_URL }}
- name: Success
run: echo "!! Deployment successful !!"