Skip to content

Build and Deploy

Build and Deploy #282

Workflow file for this run

name: Build and Deploy
on:
push:
branches:
- prod
schedule:
# every day at midnight
- cron: "0 0 * * *"
# every hour at 30m
# - cron: "30 * * * *"
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/[email protected]
with:
ref: prod
persist-credentials: false
- uses: actions/setup-node@v3
with:
node-version: 16
- name: Install dependencies and prepare data ⚙
run: |
yarn policies set-version
yarn install --frozen-lockfile
yarn
sh install.sh
yarn run thumbnails
# continue-on-error: true
- name: Build 🔧
# continue-on-error: true
run: |
yarn run build
- name: Deploy 🚀
uses: JamesIves/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: build # The folder the action should deploy.
CLEAN: true # Automatically remove deleted files from the deploy branch