From 7bac3c08d9bd90312891e0f0d91fd45b986b2295 Mon Sep 17 00:00:00 2001 From: dieghernan Date: Mon, 4 Jul 2022 18:08:06 +0200 Subject: [PATCH] Update actions --- .github/workflows/pkgdown-gh-pages-clean.yaml | 20 +++++-------------- docs/.gitignore | 0 2 files changed, 5 insertions(+), 15 deletions(-) delete mode 100644 docs/.gitignore diff --git a/.github/workflows/pkgdown-gh-pages-clean.yaml b/.github/workflows/pkgdown-gh-pages-clean.yaml index cffae7e..e031344 100644 --- a/.github/workflows/pkgdown-gh-pages-clean.yaml +++ b/.github/workflows/pkgdown-gh-pages-clean.yaml @@ -23,21 +23,11 @@ jobs: extra-packages: local::. any::pkgdown - ropenscilabs/r2readthedocs + ropenspain/rostemplate needs: website - - name: Update docs + - name: Deploy package run: | - r2readthedocs::rtd_build() - - r2readthedocs::r2readthedocs(".") - - shell: Rscript {0} - - - name: Commit results - run: | - git config --local user.name "dieghernan" - git config --local user.email "dieghernan@users.noreply.github.com" - git add -A - git commit -m 'Update docs with pkgdev' || echo "No changes to commit" - git push origin || echo "No changes to commit" \ No newline at end of file + git config --local user.name "$GITHUB_ACTOR" + git config --local user.email "$GITHUB_ACTOR@users.noreply.github.com" + Rscript -e 'pkgdown::deploy_to_branch(new_process = FALSE, run_dont_run = TRUE)' \ No newline at end of file diff --git a/docs/.gitignore b/docs/.gitignore deleted file mode 100644 index e69de29..0000000