Skip to content

Commit

Permalink
website deployment through github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Irina Gaynanova committed Feb 25, 2022
1 parent ebae65d commit 5639ff0
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 3 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/pkgdown.yaml
Original file line number Diff line number Diff line change
@@ -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 "[email protected]"
Rscript -e 'pkgdown::deploy_to_branch(new_process = FALSE)'
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ docs/
iglu.Rproj
/doc/
/Meta/
docs
1 change: 1 addition & 0 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,4 @@ Suggests:
rmarkdown,
testthat (>= 2.1.0)
VignetteBuilder: knitr
URL: https://irinagain.github.io/iglu/
6 changes: 3 additions & 3 deletions _pkgdown.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
destination: docs
url: https://irinagain.github.io/iglu/
template:
bootstrap: 5

development:
mode: auto

0 comments on commit 5639ff0

Please sign in to comment.