Skip to content

Commit

Permalink
Update pkgdown.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
GegznaV committed Jun 9, 2020
1 parent 417b643 commit 556c7e3
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/pkgdown.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ jobs:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v2

- uses: r-lib/actions/setup-r@master

- uses: r-lib/actions/setup-pandoc@master

- name: Query dependencies
Expand All @@ -32,6 +30,7 @@ jobs:
- name: Install dependencies
run: |
install.packages("remotes")
install.packages("rmarkdown")
install.packages("ps")
remotes::install_deps(dependencies = TRUE)
remotes::install_dev("pkgdown")
Expand All @@ -40,6 +39,15 @@ jobs:
- name: Install package
run: R CMD INSTALL .

- name: Render README
run: Rscript -e 'rmarkdown::render("README.Rmd")'

- name: Commit results
run: |
git commit README.md -m 'Re-build README.Rmd before pkgdown' || echo "No changes to commit"
git push origin || echo "No changes to commit"
- name: Deploy package
run: pkgdown::deploy_to_branch(new_process = FALSE)
shell: Rscript {0}

0 comments on commit 556c7e3

Please sign in to comment.