Skip to content

装备选择逻辑改动,及增加“水上机”类别装备 #133

装备选择逻辑改动,及增加“水上机”类别装备

装备选择逻辑改动,及增加“水上机”类别装备 #133

Workflow file for this run

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
if: ${{ github.event_name == 'push' && github.ref_name == 'master' }}
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.