Skip to content

Merge pull request #4 from aaronaco/develop #3

Merge pull request #4 from aaronaco/develop

Merge pull request #4 from aaronaco/develop #3

name: Deploy Staging
on:
push:
branches:
- staging
jobs:
build-and-deploy:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'yarn'
- name: Install Dependencies
run: yarn install --frozen-lockfile
- name: Build Viewer (Staging)
run: yarn run build:ci
- name: Deploy to Netlify
uses: netlify/actions/cli@master
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
with:
args: deploy --dir=platform/app/dist --prod --message "Deploy from GitHub Actions - ${{ github.sha }}"