From d988ae938159672dd4c396036cf8269e3f654e0f Mon Sep 17 00:00:00 2001 From: ForteScarlet Date: Mon, 10 Jun 2024 22:40:21 +0800 Subject: [PATCH] Create deploy-ob-kdoc.yml --- .github/workflows/deploy-ob-kdoc.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/deploy-ob-kdoc.yml diff --git a/.github/workflows/deploy-ob-kdoc.yml b/.github/workflows/deploy-ob-kdoc.yml new file mode 100644 index 00000000000..022aef2b5f7 --- /dev/null +++ b/.github/workflows/deploy-ob-kdoc.yml @@ -0,0 +1,22 @@ +name: Deploy OneBot KDoc Pages +on: + push: + branches: + - kdoc-deploy/component-onebot + +jobs: + deploy-onebot-kdoc-pages: + name: deploy-onebot-kdoc-pages + runs-on: ubuntu-latest + steps: + # 检出仓库代码 + - uses: actions/checkout@v4 + + # https://github.com/marketplace/actions/github-pages-action + - name: Deploy component/onebot to doc repository + uses: peaceiris/actions-gh-pages@v3 + with: + personal_token: ${{ secrets.PUSH_TOKEN }} + publish_branch: gh-pages + publish_dir: components/onebot + destination_dir: components/onebot