Skip to content

Commit 4e4ec0a

Browse files
committed
development documentation
fixes #197
1 parent 5ff2189 commit 4e4ec0a

File tree

2 files changed

+13
-11
lines changed

2 files changed

+13
-11
lines changed

.github/workflows/pkgdown.yaml

+10-10
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,14 @@ jobs:
4646
run: |
4747
Rscript -e 'connectapi:::build_test_env()'
4848
49-
- name: Deploy package
50-
if: github.event_name != 'pull_request'
51-
run: |
52-
git config --local user.name "$GITHUB_ACTOR"
53-
git config --local user.email "[email protected]"
54-
Rscript -e 'pkgdown::deploy_to_branch(new_process = FALSE)'
49+
- name: Build site
50+
run: pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE)
51+
shell: Rscript {0}
5552

56-
- name: Build site without deploying
57-
if: github.event_name == 'pull_request'
58-
run: |
59-
Rscript -e 'pkgdown::build_site(preview = FALSE, install = FALSE)'
53+
- name: Deploy to GitHub pages 🚀
54+
if: github.event_name != 'pull_request'
55+
uses: JamesIves/[email protected]
56+
with:
57+
clean: false
58+
branch: gh-pages
59+
folder: docs

_pkgdown.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
url: https://pkgs.rstudio.com/connectapi/
2-
destination: docs
2+
3+
development:
4+
mode: auto
35

46
reference:
57

0 commit comments

Comments
 (0)