diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 82d0e5ab6..f27c66061 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -63,9 +63,12 @@ jobs: - name: Deploy to gh-pages if: github.event_name == 'push' && github.ref == 'refs/heads/main' + env: + GITHUB_TOKEN: ${{ github.token }} run: | git config --global user.name 'GitHub Actions' git config --global user.email 'actions@github.com' + git remote set-url origin "https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" git checkout --orphan gh-pages-tmp git rm --quiet -rf .