This commit is contained in:
quan787 2022-09-26 23:34:21 +08:00
parent c15dd34002
commit d4a5f67e9d
2 changed files with 30 additions and 0 deletions

29
.github/workflows/deploy.yml vendored Normal file
View File

@ -0,0 +1,29 @@
name: Deploy
on:
push:
branches:
- main
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"

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
node_modules/ node_modules/
dist
yarn-error.log yarn-error.log