Skip to content

Build and Deploy

Build and Deploy #623

Workflow file for this run

name: Build and Deploy
on:
push:
branches:
- prod
schedule:
- cron: "0 0 * * *"
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/[email protected]
with:
ref: prod
persist-credentials: false
- name: Install dependencies and prepare data ⚙
run: |
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