From fe5c62dadc21a129f997ed41ee204fb96105903a Mon Sep 17 00:00:00 2001 From: AliceCooper214 <52147478+AliceCooper214@users.noreply.github.com> Date: Thu, 28 Mar 2024 03:48:46 +0800 Subject: [PATCH] chore: test --- .github/workflows/deploy.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 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..6b5e4dd --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,29 @@ +#!/usr/bin/env sh +name: Deploy + +on: + push: + branches: + - main + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + - uses: actions/setup-node@v3 + with: + node-version: 16 + cache: yarn + - run: yarn install --frozen-lockfile + + - name: Build + run: yarn docs:build + + - name: Deploy + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: docs/.vitepress/dist \ No newline at end of file