You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be good to have deploy previews in docs PRs for reviewers to look at.
We're currently using GitHub pages to deploy the site from main. Prior to this, we had PR deploy previews set up but we broke this when we started publishing from main. As far as I can tell, you can't both:
Deploy GitHub pages from main to a domain name
Deploy private previews
GitHub has this on their roadmap but I think our only option is to use something like Netlify. We should set that up.
I tried two approaches to doing this today with Netlify and it looks like Netlify won't work for us. There are two approaches available to us:
Pull-based: Netlify pulls our repo in and builds automatically
Push-based: We use GHA and an API request to trigger a build
For (1), the default behavior is that it will always add a noisy comment in PRs about the deploy, which I don't want. The closest you can get is to set an ignore rule so the build only happens when certain paths have been changed in the PR but the comment is still created.
For (2), Netlify doesn't have an official GitHub Actions workflow nor does it have scoped authentication tokens. So we have to use a third-party workflow and give it access to a PAT (read: account-wide) via a GitHub Actions Secret. This opens us up to risk if we ever do more with our Netlify account since a PR could pwn the token. Secrets are (for good reason) inaccessible to forks but forks are exactly the types of PR sources I wanted to enable PR deploy previews for. It looked like there was a way to use Environments and Secrets in combination but I wasn't able to find a way to make it work with forks. We could do (2) but we'd be restricted to pull requests from the main dbc repo which is just an annoying limitation.
I'll leave this ticket open because there are other approaches we could consider using other services.
Activity
[-]set up PR deploy previews for docs site[/-][+]Set up PR deploy previews for docs site[/+]amoeba commentedon Sep 27, 2025
I tried two approaches to doing this today with Netlify and it looks like Netlify won't work for us. There are two approaches available to us:
For (1), the default behavior is that it will always add a noisy comment in PRs about the deploy, which I don't want. The closest you can get is to set an ignore rule so the build only happens when certain paths have been changed in the PR but the comment is still created.
For (2), Netlify doesn't have an official GitHub Actions workflow nor does it have scoped authentication tokens. So we have to use a third-party workflow and give it access to a PAT (read: account-wide) via a GitHub Actions Secret. This opens us up to risk if we ever do more with our Netlify account since a PR could pwn the token. Secrets are (for good reason) inaccessible to forks but forks are exactly the types of PR sources I wanted to enable PR deploy previews for. It looked like there was a way to use Environments and Secrets in combination but I wasn't able to find a way to make it work with forks. We could do (2) but we'd be restricted to pull requests from the main dbc repo which is just an annoying limitation.
I'll leave this ticket open because there are other approaches we could consider using other services.
amoeba commentedon Oct 24, 2025
I moved this out of 0.1 since I don't think we can or need to solve this yet.
docs: add installation, first steps, cli+config reference to docs (#62)