Update GitHub Actions workflows to replace pr-preview-action#136
Merged
Conversation
…hub-pages-deploy-action, enhance PR preview deployment and cleanup processes, and add sticky comments with timestamps.
Contributor
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
We had to replace the
pr-preview-actionwith another action that supporting our use case. The author doesn't support forked PRs for security reasons: rossjrw/pr-preview-action#6 So we shall also keep in mind with that.This pull request updates the PR preview deployment and cleanup workflows to use the more robust
github-pages-deploy-actioninstead of the previouspr-preview-action. It also improves visibility for contributors by posting sticky comments with preview links and timestamps on pull requests.Deployment workflow improvements:
rossjrw/pr-preview-actiontoJamesIves/github-pages-deploy-action@v4for deploying PR previews, allowing more flexible folder targeting and improved reliability. (.github/workflows/pr-deploy-preview.yml).github/workflows/pr-deploy-preview.yml)Cleanup workflow improvements:
.github/workflows/pr-preview-cleanup.yml)github-pages-deploy-action@v4, deploying an empty folder to effectively remove the preview, and added a sticky comment to notify contributors of the removal with a timestamp. (.github/workflows/pr-preview-cleanup.yml)