New version publish #46
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: Build and Deploy to GitHub Pages | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 2 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- name: Rush Update | |
run: node common/scripts/install-run-rush.js update | |
- name: Rush Install | |
run: node common/scripts/install-run-rush.js install | |
- name: Rush rebuild | |
run: node common/scripts/install-run-rush.js rebuild --verbose | |
- name: Build site | |
run: pushd site && npm run build:site && popd | |
- name: Deploy to GitHub Pages | |
uses: Cecilapp/GitHub-Pages-deploy@v3 | |
env: | |
GITHUB_TOKEN: ${{ secrets.SITE_DEPLOY_TOKEN }} | |
with: | |
email: gavinyork2024@outlook.com | |
build_dir: ./site/dist/web |