更新数据至7.1.217版本 #117
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 | |
on: | |
# Triggers the workflow on push or pull request events but only for the master branch | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2.3.1 | |
- name: Setup Node | |
uses: actions/setup-node@v2 | |
with: | |
node-version: "14" | |
- name: Cache Node Modules | |
id: node-cache | |
uses: actions/cache@v2 | |
with: | |
path: vue/node_modules | |
key: node-modules-${{ hashFiles('vue/yarn.lock') }} | |
- name: Install Dependencies | |
if: steps.node-cache.outputs.cache-hit != 'true' | |
run: | | |
cd vue | |
yarn | |
- name: Build | |
run: | | |
cd vue | |
yarn build | |
cp ../README.md dist/ | |
- name: Deploy | |
uses: JamesIves/github-pages-deploy-action@v4.2.2 | |
with: | |
branch: gh-pages # The branch the action should deploy to. | |
folder: vue/dist # The folder the action should deploy. |