From 5898b15f21a240fd99c905870a01b702e3f29072 Mon Sep 17 00:00:00 2001 From: Peter Solymos Date: Wed, 31 Jan 2024 02:17:14 -0700 Subject: [PATCH] Don't build site on PR Signed-off-by: Peter Solymos --- .github/workflows/check.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index aafc7cd..c1861f6 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -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 @@ -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