We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c310589 commit 440efa9Copy full SHA for 440efa9
.github/workflows/pkgdown.yaml
@@ -41,7 +41,13 @@ jobs:
41
- name: Build site
42
env:
43
DELPHI_EPIDATA_KEY: ${{ secrets.SECRET_EPIDATR_GHACTIONS_DELPHI_EPIDATA_KEY }}
44
- run: pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE)
+ run: |
45
+ if (startsWith("${{ github.event_name }}", "pull_request")) {
46
+ mode <- ifelse("${{ github.base_ref }}" == "main", "release", "devel")
47
+ } else {
48
+ mode <- ifelse("${{ github.ref_name }}" == "main", "release", "devel")
49
+ }
50
+ pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE, override=list(PKGDOWN_DEV_MODE=mode))
51
shell: Rscript {0}
52
53
- name: Deploy to GitHub pages 🚀
0 commit comments