Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add deployments for PR branches to allow previewing changes before merging #70

Open
joshuacwnewton opened this issue Aug 31, 2022 · 2 comments
Labels
supporting infrastructure Scripts, CI, build tools, hosting

Comments

@joshuacwnewton
Copy link
Member

joshuacwnewton commented Aug 31, 2022

Recently, changes were made to the website via commits directly to master. Seeing this, I wanted to recommend using GitHub's PR interface instead. But, then I noticed that there are currently no preview builds for PRs, meaning that PR contributors seemingly have to cross their fingers and hope the changes work before merging.

If there was a way to preview changes before merging (similar to how RTD does it for PRs), then I would feel a lot more comfortable recommending PRs for website changes.

@joshuacwnewton joshuacwnewton added the supporting infrastructure Scripts, CI, build tools, hosting label Aug 31, 2022
@joshuacwnewton
Copy link
Member Author

It seems as though there is an open discussion for this here: community/community#7730

And, it seems like the GitHub team is planning this on their roadmap, at least circa Dec 2021:

Hello! Just wanted to chime in here to confirm that this is something we have plans for. No ETA yet as it has not been committed to the roadmap but we are doing prep work in the next few months that will help us achieve this in the medium term.

@joshuacwnewton
Copy link
Member Author

joshuacwnewton commented Aug 31, 2022

As for what we can do now... It looks like we're currently using the very stock "deploy from a branch" option for GitHub Pages:

image

It doesn't seem like this naturally allows for multiple branches.


That said, there is this comment (community/community#7730 (comment)) that says:

With a bit of fiddling around you can make your own deployment preview system just using basic GitHub actions

It's a bit complex/fiddly, though. I'm not sure if this is worth the effort yet, so I'm going to hold off on trying to implement anything.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
supporting infrastructure Scripts, CI, build tools, hosting
Projects
None yet
Development

No branches or pull requests

1 participant