Skip to content

Deploy to Netlify

Deploy to Netlify #246

Workflow file for this run

name: Deploy to Netlify
on:
workflow_dispatch:
push:
branches:
- master
jobs:
build:
name: Deploy
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node-version: [24]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm run test
- run: npm run build:netlify
- name: Deploy to Netlify
id: netlify_deploy
run: |
npx netlify deploy \
--dir dist/app/browser \
--site ${{ secrets.NETLIFY_SITE_ID }} \
--auth ${{ secrets.NETLIFY_AUTH_TOKEN }} \
--message "Production deploy" \
--prod-if-unlocked