Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Triggering new builds for the master branch doesn't update the latest doc. #11993

Closed
trivialfis opened this issue Feb 12, 2025 · 1 comment
Closed

Comments

@trivialfis
Copy link

Details

Expected Result

Triggering a new build for the master branch with the REST API should update the online document for "latest" after the build is finished.

Actual Result

The new document is not displayed. Also, the resulting page from the new build is missing.

Context

We use the REST API to trigger a new build after our CI for building document artifacts is completed. The conf.py file fetches these artifacts to render the document during the sphinx build. As a result, the read the doc build service is run twice, the first time invoked by the default GitHub webhook and the second time by a custom GitHub action that invokes the REST API. The build from the second run must be used as the final result.

We hope there's a better way to add dependencies between GitHub action and read the doc build. But for now, it would be great to update the latest doc with the REST API.

@trivialfis
Copy link
Author

Found the solution, I should trigger the build with "latest" instead of the actual branch name.

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

No branches or pull requests

1 participant