Merge pull request #133 from wlmac/develop #98
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: deploy-to-github-pages | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
environment: github-pages | |
strategy: | |
matrix: | |
node-version: [18.10.0] | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install Packages | |
run: npm install --legacy-peer-deps | |
- name: Deploy to GH Pages | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "Jimmy Liu" | |
git remote set-url origin https://${{ secrets.GH_PAGES_TOKEN }}@github.com/${GITHUB_REPOSITORY}.git | |
npm run deploy |