fix: 三脚架图 #79
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
# This workflow will do build and deploy to oss. | |
name: deploy | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 14 | |
- uses: manyuanrong/[email protected] | |
with: | |
endpoint: oss-accelerate.aliyuncs.com | |
access-key-id: ${{ secrets.ACCESS_KEY_ID }} | |
access-key-secret: ${{ secrets.ACCESS_KEY_SECRET }} | |
- name: build docs | |
run: | | |
npm ci | |
npm run docs:build | |
ls docs/.vuepress/dist | |
- name: upload to OSS | |
run: | | |
ossutil cp -rf docs/.vuepress/dist oss://yiqiti-website/iori |