Skip to content

Merge pull request #318 from mice33/master #195

Merge pull request #318 from mice33/master

Merge pull request #318 from mice33/master #195

Workflow file for this run

name: Deploy docs
on:
push:
branches: [ master ]
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout # checkout
uses: actions/checkout@v2
- name: Setup node
uses: actions/setup-node@v1
with:
node-version: "12.x"
- name: Build
run: |
yarn install
yarn run docs:build
yarn run demo:build
yarn run demo3:build
- name: Setup aliyun oss
# 设置阿里云OSS配置
uses: manyuanrong/setup-ossutil@v2.0
with:
endpoint: "oss-cn-hongkong.aliyuncs.com"
access-key-id: ${{ secrets.OSS_ACCESSKEYID }}
access-key-secret: ${{ secrets.OSS_ACCESSKEYSECRET }}
- name: Deploy docs
# 发布文档
run: ossutil cp -rf ./packages/docs/docs/.vuepress/dist/ oss://vjsf-docs-buhuida/
- name: Deploy demo
# 发布demo
run: ossutil cp -rf ./packages/demo/demo-v2/dist/ oss://form-buhuida/
- name: Deploy demo-v3
# 发布demo-v3
run: ossutil cp -rf ./packages/demo/demo-v3/dist/v3 oss://form-buhuida/v3