Skip to content

Fix docs deploy auth in Publish Documentation workflow - #1314

Merged
gvreddy04 merged 2 commits into
mainfrom
copilot/fix-build-deploy-documentation
Aug 30, 2026
Merged

gvreddy04 merged 2 commits into
mainfrom
copilot/fix-build-deploy-documentation

Conversation

Copilot AI commented Aug 30, 2026

Copy link
Copy Markdown
Contributor

Build-Deploy-Documentation failed in Publish Documentation because the deploy step could not authenticate git push to gh-pages. This updates the workflow to use GitHub-native credentials/permissions for Docusaurus deployment.

  • Root cause addressed

    • Deploy step relied on custom Git credentials (GIT_USER/GIT_USER_TOKEN) that were rejected during git push.
  • Workflow auth + permission changes

    • Added workflow-level contents: write permission.
    • Switched deploy credentials to ${{ secrets.GITHUB_TOKEN }} with x-access-token username.
    • Set deploy commit identity to github-actions[bot] noreply email.
  • File updated

    • .github/workflows/publish-docs.yml
permissions:
  contents: write

env:
  GIT_USER: x-access-token
  GIT_PASS: ${{ secrets.GITHUB_TOKEN }}

run: |
  git config --global user.name "github-actions[bot]"
  git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
  npm run deploy

Co-authored-by: gvreddy04 <2337067+gvreddy04@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix failing GitHub Actions job Build-Deploy-Documentation Fix docs deploy auth in Publish Documentation workflow Aug 30, 2026
Copilot AI requested a review from gvreddy04 August 30, 2026 16:52
@gvreddy04
gvreddy04 marked this pull request as ready for review August 30, 2026 16:54
@gvreddy04
gvreddy04 merged commit 6f37463 into main Aug 30, 2026
@gvreddy04
gvreddy04 deleted the copilot/fix-build-deploy-documentation branch August 30, 2026 16:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants