Introduces pull request previews using rossjrw/pr-preview-action. This new workflow enables us to review both visual and functional changes before merging.
The preview functionality work in the following manner:
Triggering a Preview: Whenever a pull request is either opened, re-opened, or updated, the contents of the public directory are copied under pr-preview/pr-${github.ref} located in the gh-pages branch.
Cleaning Up: Once a pull request is closed, the corresponding preview folder (specific to the closed pull request) is deleted.
Description
Introduces pull request previews using
rossjrw/pr-preview-action
. This new workflow enables us to review both visual and functional changes before merging.The preview functionality work in the following manner:
Triggering a Preview: Whenever a pull request is either opened, re-opened, or updated, the contents of the
public
directory are copied underpr-preview/pr-${github.ref}
located in thegh-pages
branch.Cleaning Up: Once a pull request is closed, the corresponding preview folder (specific to the closed pull request) is deleted.