-
Notifications
You must be signed in to change notification settings - Fork 2
27 lines (24 loc) · 876 Bytes
/
deploy.yml
File metadata and controls
27 lines (24 loc) · 876 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# This workflow builds the docs and deploys them to GitHub Pages on every commit to the master branch
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
# need --legacy-peer-deps because craco has a peer dep for react-scripts v4. But it works locally
name: Deploy
on:
push:
branches: [ main ]
jobs:
build:
runs-on: macos-12
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
with:
persist-credentials: false
- name: Install and Build
run: |
npm ci --legacy-peer-deps
npm run build
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4.3.3
with:
branch: gh-pages # The branch the action should deploy to.
folder: build # The folder the action should deploy.