Skip to content

Set up PR deploy previews for docs site #62

Open

Description

@amoeba

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:

  1. Deploy GitHub pages from main to a domain name
  2. 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.

Activity

  1. changed the title [-]set up PR deploy previews for docs site[/-] [+]Set up PR deploy previews for docs site[/+] on Sep 22, 2025
  2. added
    enhancement
    on Sep 23, 2025
  3. added this to the 0.1 milestone on Sep 26, 2025
  4. amoeba commented on Sep 27, 2025

    @amoeba
    MemberAuthor

    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:

    1. Pull-based: Netlify pulls our repo in and builds automatically
    2. 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.

  5. modified the milestones: 0.1, 0.1.x on Oct 24, 2025
  6. amoeba commented on Oct 24, 2025

    @amoeba
    MemberAuthor

    I moved this out of 0.1 since I don't think we can or need to solve this yet.

  7. removed this from the 0.1.x milestone on Jan 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions