From 5a778ba3e55d1e683441ec51fbf9a8f0008bcda9 Mon Sep 17 00:00:00 2001 From: Anna Krystalli Date: Fri, 12 Jan 2024 11:09:38 +0200 Subject: [PATCH] disable gh deployment & give more descriptive step names --- .github/workflows/pkgdown-netlify-preview.yaml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pkgdown-netlify-preview.yaml b/.github/workflows/pkgdown-netlify-preview.yaml index 7b02eea0..b728b0cf 100644 --- a/.github/workflows/pkgdown-netlify-preview.yaml +++ b/.github/workflows/pkgdown-netlify-preview.yaml @@ -12,7 +12,7 @@ on: name: pkgdown-pr-preview jobs: - pkgdown: + pkgdown-pr-preview: if: github.event_name == 'push' || github.event.pull_request.head.repo.fork == false runs-on: ubuntu-latest # Only restrict concurrency for non-PR jobs @@ -46,15 +46,15 @@ jobs: 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' + - name: Deploy production to GitHub pages 🚀 + if: contains(env.isPush, 'true') uses: JamesIves/github-pages-deploy-action@v4.4.1 with: clean: false branch: gh-pages folder: docs - - name: Deploy to Netlify + - name: Deploy PR preview to Netlify if: contains(env.isPush, 'false') id: netlify-deploy uses: nwtgck/actions-netlify@v2 @@ -68,6 +68,7 @@ jobs: enable-pull-request-comment: true enable-commit-comment: false enable-commit-status: false + enable-github-deployment: false overwrites-pull-request-comment: false fails-without-credentials: true