update for gh-pages #11
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: Set Git User | |
run: | | |
git config --global user.name "Patrick Prunty" | |
git config --global user.email "pprunty@tcd.ie" | |
- 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 |