Skip to content

Commit

Permalink
Don't build site on PR
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Solymos <psolymos@gmail.com>
  • Loading branch information
psolymos committed Jan 31, 2024
1 parent 5dc8c60 commit 5898b15
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: macOS-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: R setup
uses: r-lib/actions/setup-r@v2
Expand All @@ -32,9 +32,11 @@ jobs:
run: Rscript -e 'devtools::check()'

- name: Build site
if: github.ref == 'refs/heads/master' && github.event_name != 'pull_request'
run: Rscript -e 'pkgdown::build_site_github_pages(install=TRUE)'

- name: Deploy site
if: github.ref == 'refs/heads/master' && github.event_name != 'pull_request'
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
Expand Down

0 comments on commit 5898b15

Please sign in to comment.