Skip to content

Commit

Permalink
disable gh deployment & give more descriptive step names
Browse files Browse the repository at this point in the history
  • Loading branch information
annakrystalli committed Jan 12, 2024
1 parent 4cce0f1 commit 5a778ba
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/pkgdown-netlify-preview.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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/[email protected]
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
Expand All @@ -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

Expand Down

0 comments on commit 5a778ba

Please sign in to comment.