-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed issue with examples in website
- Loading branch information
1 parent
ebc89a2
commit 889bdd2
Showing
1 changed file
with
18 additions
and
6 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 |
---|---|---|
|
@@ -312,6 +312,10 @@ jobs: | |
any::rcmdcheck | ||
any::pkgdown | ||
any::remotes | ||
any::rmarkdown | ||
any::modelsummary | ||
any::gt | ||
any::kableExtra | ||
needs: check | ||
|
||
- name: Install package | ||
|
@@ -333,11 +337,19 @@ jobs: | |
remotes::install_github("ropensci/RefManageR") | ||
shell: Rscript {0} | ||
|
||
- name: Render output samples | ||
- name: Install package | ||
run: R CMD INSTALL . | ||
|
||
- name: Build site # build pkgdown site in separate step | ||
run: Rscript -e 'pkgdown::build_site()' | ||
|
||
- name: Render output samples # Render output samples after that | ||
run: Rscript R/_render.R | ||
|
||
- name: Deploy package | ||
run: | | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "GitHub Actions" | ||
Rscript -e 'pkgdown::deploy_to_branch(new_process = FALSE)' | ||
- name: Deploy # deploy the docs folder to gh-pages with output samples | ||
uses: JamesIves/[email protected] | ||
with: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
BRANCH: gh-pages | ||
FOLDER: docs | ||
CLEAN: true |