.github/workflows/deploy.yml
name: react-timer-machine-deploy-example
on:
push:
branches: [main]
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
- name: Install and Build 🔧
run: |
yarn install --frozen-lockfile
yarn build
cd example
yarn install --frozen-lockfile
yarn build
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4.3.3
with:
branch: gh-pages
folder: example/build