suyanhanx opened a new pull request, #7654: URL: https://github.com/apache/opendal/pull/7654
# Which issue does this PR close? N/A. # Rationale for this change The docs workflow currently allows non-RC tags to publish `website/build` to `gh-pages`. If a release tag points to an older commit, that deployment can overwrite the public root site even after `main` has already published a newer homepage. This happened with `v0.57.0`: the workflow deployed an older site snapshot to `gh-pages`, and then failed later in the nightlies deploy step. The workflow looked red overall, but the public website had already been replaced by the older content. # What changes are included in this PR? - Restrict `Deploy to gh-pages` so only pushes on `main` can update the public root site. - Keep the existing tag-based staging and nightlies deployments unchanged. Validation: - `git diff --check` - Parsed `.github/workflows/docs.yml` with `PyYAML` # Are there any user-facing changes? Yes. The public website root will stay pinned to `main` instead of being overwritten by release-tag builds. Tagged docs publishing to the dedicated staging/nightlies paths is unchanged. # AI Usage Statement Built with Codex (GPT-5). -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
