-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
disable gh deployment & give more descriptive step names
- Loading branch information
1 parent
4cce0f1
commit 5a778ba
Showing
1 changed file
with
5 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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/[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 | ||
|
@@ -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 | ||
|
||
|