From 5639ff00b86dcdadd09bbd201dfa6a882424551d Mon Sep 17 00:00:00 2001 From: Irina Gaynanova Date: Fri, 25 Feb 2022 13:33:46 -0600 Subject: [PATCH] website deployment through github actions --- .github/workflows/pkgdown.yaml | 35 ++++++++++++++++++++++++++++++++++ .gitignore | 1 + DESCRIPTION | 1 + _pkgdown.yml | 6 +++--- 4 files changed, 40 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/pkgdown.yaml diff --git a/.github/workflows/pkgdown.yaml b/.github/workflows/pkgdown.yaml new file mode 100644 index 00000000..63cbb18a --- /dev/null +++ b/.github/workflows/pkgdown.yaml @@ -0,0 +1,35 @@ +# Workflow derived from https://github.com/r-lib/actions/tree/master/examples +# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help +on: + push: + branches: [main, master] + release: + types: [published] + workflow_dispatch: + +name: pkgdown + +jobs: + pkgdown: + runs-on: ubuntu-latest + env: + GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} + steps: + - uses: actions/checkout@v2 + + - uses: r-lib/actions/setup-pandoc@v1 + + - uses: r-lib/actions/setup-r@v1 + with: + use-public-rspm: true + + - uses: r-lib/actions/setup-r-dependencies@v1 + with: + extra-packages: pkgdown + needs: website + + - name: Deploy package + run: | + 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)' diff --git a/.gitignore b/.gitignore index 4b8a547e..502ee0b3 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,4 @@ docs/ iglu.Rproj /doc/ /Meta/ +docs diff --git a/DESCRIPTION b/DESCRIPTION index e177a95c..459fe51a 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -72,3 +72,4 @@ Suggests: rmarkdown, testthat (>= 2.1.0) VignetteBuilder: knitr +URL: https://irinagain.github.io/iglu/ diff --git a/_pkgdown.yml b/_pkgdown.yml index 91072bd8..564b6697 100644 --- a/_pkgdown.yml +++ b/_pkgdown.yml @@ -1,4 +1,4 @@ -destination: docs +url: https://irinagain.github.io/iglu/ +template: + bootstrap: 5 -development: - mode: auto