From 556c7e3747b3d30ce9d2a9406660186283ed9f28 Mon Sep 17 00:00:00 2001 From: Vilmantas Gegzna Date: Tue, 9 Jun 2020 11:16:31 +0300 Subject: [PATCH] Update pkgdown.yaml --- .github/workflows/pkgdown.yaml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pkgdown.yaml b/.github/workflows/pkgdown.yaml index c5bf41e9..1489dfaf 100644 --- a/.github/workflows/pkgdown.yaml +++ b/.github/workflows/pkgdown.yaml @@ -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 @@ -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") @@ -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}