Link to preview deployments #58
Labels
A-ci
Area: Our CI
A-docs
Area: documentation for any part of the project
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
If a PR alters the docs, we should do a preview deployment to vercel and show the preview URL in a comment. This should be possible by checking if nixbuild.net built the docs, or if it already had it in cache. If built, the docs should be fetched and uploaded.
This can be achieved with something like
With this, we'll get links to previews only if the docs changed. A downside is that the nix store can remove cached docs if they haven't been built in a while. Alternatively we can also only run the preview URL if the docs directory is changed; but that however means that if docs depend on anything outside of the docs directory, we might build broken docs without knowing it.
The text was updated successfully, but these errors were encountered: