Skip to content

Commit

Permalink
ci(pkgdown): set pkgdown dev mode on dev branch
Browse files Browse the repository at this point in the history
  • Loading branch information
jamespeapen committed May 21, 2024
1 parent 29db4fb commit 701ee79
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/pkgdown.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on:

name: pkgdown

env:
PKGDOWN_DEV_MODE: ${{ github.ref == 'refs/heads/main' && 'release' || 'devel' }}

jobs:
pkgdown:
runs-on: ubuntu-latest
Expand All @@ -33,6 +36,9 @@ jobs:
extra-packages: any::pkgdown, local::.
needs: website

- name: Check dev mode
run: echo "$GITHUB_ENV"

- name: Build site
run: pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE)
shell: Rscript {0}
Expand Down

0 comments on commit 701ee79

Please sign in to comment.