furrer-lab / abn

Bayesian network analysis in R
https://r-bayesian-networks.org/
GNU General Public License v3.0
1 stars 0 forks source link

Avoid publishing pages on pull requests #75

Closed j-i-l closed 1 month ago

j-i-l commented 1 month ago

https://github.com/furrer-lab/abn/blob/9d852e7d796ebb0bac765d751b69e91d5198a499/.github/workflows/pkgdown.yaml#L52-L54

This currently runs

https://github.com/furrer-lab/abn/blob/9d852e7d796ebb0bac765d751b69e91d5198a499/.github/workflows/pkgdown.yaml#L3-L9

So we publish when running on pull requests.

If we want to test the build, then "Deploy to Github pages" should get an if, running only on release (or push > branch > main - this is to decide).

j-i-l commented 1 month ago

Simply put a condition on the publish task to only run on push to master or publish new release