Skip to content

update cd.yaml

update cd.yaml #56

Workflow file for this run

name: gh-pages site ⛬
on:
workflow_dispatch:
push:
branches:
- main
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2.3.1
with:
persist-credentials: false
- name: ⬢ Use Node.js
uses: actions/setup-node@v2
with:
node-version: 16.14.2
- name: Install and Build 🔧
run: yarn && yarn demo:deploy
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@3.6.2
with:
GITHUB_TOKEN: ${{ secrets.GH_PAGES }}
BRANCH: gh-pages
FOLDER: demo/build
CLEAN: true