Skip to content

Deploy To Netlify

Deploy To Netlify #7

Workflow file for this run

name: Deploy To Netlify
on:
workflow_run:
workflows: [Unit Tests, Playwright Tests]
types:
- completed
jobs:
deploy:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
- name: Install Dependencies
run: cd client && npm ci && npm run build
- name: Install Netlify CLI
run: npm install -g netlify-cli
- name: Deploy to Netlify
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
run: netlify deploy --prod --dir=client/build --site=$NETLIFY_SITE_ID