Fix docs gh-pages publish authentication#20890
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/20890
Note: Links to docs will display an error until the docs builds have been completed. This comment was automatically generated by Dr. CI and updates every 15 minutes. |
This PR needs a
|
|
This also fixes https://github.com/pytorch/executorch/actions/runs/29265325297/job/86873583069. That job is still running the old docs publish script with |
feb9839 to
bcc2f59
Compare
Summary: - Run the docs gh-pages publish script on the host instead of inside Docker. - Keep using actions/checkout persisted credentials for the GITHUB_TOKEN-backed push. Failure fixed: - Post-#20890 docs publish jobs still fail at git push -f with fatal: could not read Username for https://github.com: terminal prompts disabled because the Dockerized script cannot see checkout credentials from the host. Testing: - git diff --check - Ruby YAML parse of .github/workflows/doc-build.yml Notes: - actionlint is not installed in this local environment.
Summary:
originwith that token before pushing generated docs.contents: writepermission for the gh-pages push.Failure fixed:
git push -fwithPermission to pytorch/executorch.git denied to GregoryComer.Testing:
Notes: