Update ci.yml #1
Workflow file for this run
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: CI | |
on: | |
push: | |
branches: [ main ] | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: use nodejs 12.22.12 | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '12.22.12' | |
registry-url: 'https://registry.npmjs.org' | |
- name: yarn install, build | |
run: | | |
yarn install | |
yarn build --if-present | |
env: | |
CI: true | |
- name: deploy | |
uses: JamesIves/github-pages-deploy-action@releases/v3 | |
with: | |
# 发布到指定分支 | |
BRANCH: colirx-pages | |
# 构建成果所在目录,默认位置都是在根目录 | |
FOLDER: ./docs/.vuepress/dist |