feat: 添加错误拦截页面2 #23
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: webpack-react-admin | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@master # If you're using actions/checkout@v2 you must set persist-credentials to false in most cases for the deployment to work correctly. | |
with: | |
persist-credentials: false | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '16.18.0' | |
- name: Install and Build | |
run: | | |
npm install | |
npm run build:prod | |
- name: Deploy | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
ACCESS_TOKEN: ${{ secrets.GH_PAGE_ACTION_TOKEN }} | |
BRANCH: gh-pages | |
FOLDER: dist | |
BUILD_SCRIPT: npm install && npm run build:prod |