From d4a5f67e9d08e05b3527686cbb7a42cadcc59682 Mon Sep 17 00:00:00 2001 From: quan787 Date: Mon, 26 Sep 2022 23:34:21 +0800 Subject: [PATCH] depoly --- .github/workflows/deploy.yml | 29 +++++++++++++++++++++++++++++ .gitignore | 1 + 2 files changed, 30 insertions(+) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..7f0592d --- /dev/null +++ b/.github/workflows/deploy.yml @@ -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" diff --git a/.gitignore b/.gitignore index 72f1ef2..98b045f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ node_modules/ +dist yarn-error.log \ No newline at end of file