chore: update apply、bind、call #70
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: web-advanced-frond-end CI | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [12.x] | |
steps: | |
- uses: actions/checkout@v1 | |
- name: 步骤:第一步 -> 设置环境 | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: 步骤:第二步 -> 安装依赖 | |
run: | | |
npm install | |
npm run build | |
env: | |
CI: true | |
- name: 步骤:第三步 -> 部署脚本 | |
env: | |
ACCESS_TOKEN_DEPLOY: ${{secrets.ACTIONS_ACCESS_TOKEN_WEB_CI }} | |
PUBLISH_BRANCH: gh-pages | |
PUBLISH_DIR: ./docs/.vuepress/dist | |
CNAME: web.veaba.me | |
run: | | |
chmod +x ./scripts/deploy.sh | |
bash ./scripts/deploy.sh |