Addresses srgssr/pillarbox-web#196 by introducing 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 project undergoes a build process. The contents of the dist 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.
Changes made
The JamesIves/github-pages-deploy-action has been updated from version 3 to version 4. This update introduces the following configurations to this action:
force: false: This disables force push to the deployment branch.
clean-exclude: pr-preview/: This prevents the deletion of PR previews when the main branch is deployed.
Description
Addresses srgssr/pillarbox-web#196 by introducing 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 project undergoes a build process. The contents of the
dist
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.
Changes made
JamesIves/github-pages-deploy-action
has been updated from version 3 to version 4. This update introduces the following configurations to this action:force: false
: This disables force push to the deployment branch.clean-exclude: pr-preview/
: This prevents the deletion of PR previews when the main branch is deployed.