.github/workflows: Integrate PR Preview workflow #21918
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Contribution description
I added the guide preview CI workflow we tested a few months ago. To enable it on a PR it needs to have the "CI: preview docs" label to prevent bad actors misusing this.
Since the PR Previews use a folder on the gh-pages branch, I also needed to change the the CI deployment action to a different one, since it didn't have support for excluding certain folders from the cleanup.
The doc related CI workflows were also the only ones that used 4 spaces, I fixed that formatting error.
Testing procedure
I uh, don't exactly know how best to test this working in our repository. It worked for my own blog but the environment is fairly different. Worst case this just fails, best case it works. Either way it shouldn't impact anything even if it breaks, (esp. since its guarded by the aforementioned label).
Issues/PRs references