From 7fb6399d9aa6c419dd69d6988886ae2718a80a25 Mon Sep 17 00:00:00 2001 From: "guangli.bao" Date: Sat, 11 Oct 2025 15:58:12 +0800 Subject: [PATCH] fix docs update to gh-pages branch Signed-off-by: guangli.bao --- .github/workflows/main.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d0fc5efc6..48c3bf497 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -71,3 +71,20 @@ jobs: user_name: ${{ github.actor }} user_email: ${{ github.actor }}@users.noreply.github.com publish_branch: gh-pages + + deploy-docs: + permissions: + contents: write + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Deploy docs to gh-pages branch + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./site + keep_files: false + user_name: ${{ github.actor }} + user_email: ${{ github.actor }}@users.noreply.github.com + publish_branch: gh-pages