cynkra / cynkrablog

Source of the cynkra blog
https://cynkra.com/blog
0 stars 1 forks source link

how to get PR deploy previews #22

Closed maelle closed 9 months ago

maelle commented 11 months ago

Should we install Netlify on this repo?

I know we use some sort of gh-pages deploy for pkgdown website previews, but it's not a great workflow in the case several posts are in PR state at the same time.

@pat-s

pat-s commented 11 months ago

Why is it not great for multiple PRS?

We don't use Netlify anymore. They charge a lot for private repos.

maelle commented 11 months ago

Well this is a public repo :grin: but ok, let's find another way.

In the pkgdown previews, all PRs get deployed to dev/, so if you have several PRs, they overwrite each other.

pat-s commented 11 months ago

Well this is a public repo 😁 but ok, let's find another way.

Yeah but even then - we're good without Netlify.

For cynkraweb we use s3-based previews. All of them have their own environment (=bucket) and don't conflict.

So far I thought we use the same preview approach as we do in cynkraweb? I.e. you copy the workflow from there and I add the required secrets. And then things "should just work" :)