From 409fa9842d4ed96b63cc13e06d0004d6a9032558 Mon Sep 17 00:00:00 2001 From: Wei Fu <36355462+garrett4wade@users.noreply.github.com> Date: Thu, 29 May 2025 11:09:01 +0800 Subject: [PATCH] [CI] Fix doc CI (#56) * . * . * . --- .github/workflows/deploy-docs.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index d0e75c4..04e368d 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -28,7 +28,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v4 with: - python-version: '3.9' # Adjust version as needed + python-version: '3.12' # Adjust version as needed - name: Cache pip dependencies uses: actions/cache@v3 @@ -52,6 +52,7 @@ jobs: - name: Deploy to GitHub Pages if: github.ref == 'refs/heads/main' # Only deploy on main branch run: | + git config --global user.name 'github-actions[bot]' + git config --global user.email 'github-actions[bot]@users.noreply.github.com' + git remote set-url origin https://x-access-token:${{ secrets.DEPLOY_TOKEN }}@github.com/${{ github.repository }}.git ghp-import -n -p -f docs/_build/html - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file