Skip to content

Commit

Permalink
rebuild pkgdown site only at push, not scheduled
Browse files Browse the repository at this point in the history
  • Loading branch information
stopsack committed Oct 9, 2023
1 parent 730aa50 commit 7544339
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -124,19 +124,19 @@ jobs:
shell: Rscript {0}

- name: pkgdown dependencies
if: github.event_name != 'pull_request' && matrix.config.os == 'macOS-latest'
if: github.event_name == 'push' && matrix.config.os == 'macOS-latest'
uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::pkgdown, local::.
needs: website

- name: Build site
if: github.event_name != 'pull_request' && matrix.config.os == 'macOS-latest'
if: github.event_name == 'push' && matrix.config.os == 'macOS-latest'
run: pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE)
shell: Rscript {0}

- name: Deploy to GitHub pages 🚀
if: github.event_name != 'pull_request' && matrix.config.os == 'macOS-latest'
if: github.event_name == 'push' && matrix.config.os == 'macOS-latest'
uses: JamesIves/[email protected]
with:
clean: false
Expand Down

0 comments on commit 7544339

Please sign in to comment.