depoly
This commit is contained in:
parent
c15dd34002
commit
d4a5f67e9d
29
.github/workflows/deploy.yml
vendored
Normal file
29
.github/workflows/deploy.yml
vendored
Normal 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
1
.gitignore
vendored
@ -1,2 +1,3 @@
|
|||||||
node_modules/
|
node_modules/
|
||||||
|
dist
|
||||||
yarn-error.log
|
yarn-error.log
|
||||||
Loading…
x
Reference in New Issue
Block a user