chore(deps): update dependency webpack to v5.97.0 (#1167) #1631
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 | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: node | |
run: echo "##[set-output name=versoin;]$(cat .nvmrc)" | |
id: node | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: "${{ steps.node.outputs.version }}" | |
- name: Build | |
run: | | |
npm ci | |
npm run build | |
cp dist/index.html dist/404.html | |
# https://www.smashingmagazine.com/2016/08/sghpa-single-page-app-hack-github-pages/ | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v4 | |
with: | |
personal_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./dist |