30 lines
682 B
YAML
30 lines
682 B
YAML
name: Deploy
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 16
|
|
cache: yarn
|
|
- run: yarn install --frozen-lockfile
|
|
|
|
- name: Build
|
|
run: yarn docs:build
|
|
|
|
- name: upload files to OSS
|
|
uses: fangbinwei/aliyun-oss-website-action@v1
|
|
with:
|
|
accessKeyId: ${{ secrets.ACCESS_KEY_ID }}
|
|
accessKeySecret: ${{ secrets.ACCESS_KEY_SECRET }}
|
|
bucket: "blog-meteoroid-fit"
|
|
endpoint: "oss-cn-beijing.aliyuncs.com"
|
|
folder: "docs/.vitepress/dist"
|