Skip to content

Commit

Permalink
Merge pull request #60 from maelle/docs
Browse files Browse the repository at this point in the history
  • Loading branch information
krlmlr authored Apr 15, 2024
2 parents e26ab07 + c546fb5 commit 6ef1f4f
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/pkgdown.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
push:
branches: [main, master]
tags: ['*']
pull_request:
branches: [main, master]

name: pkgdown

Expand All @@ -12,6 +14,7 @@ jobs:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
isExtPR: ${{ github.event.pull_request.head.repo.fork == true }}
steps:
- uses: actions/checkout@v4

Expand All @@ -26,8 +29,14 @@ jobs:
extra-packages: pkgdown
needs: website

- name: Deploy package
- name: Deploy pkgdown website
if: contains(env.isExtPR, 'false')
run: |
git config --local user.name "$GITHUB_ACTOR"
git config --local user.email "[email protected]"
Rscript -e 'pkgdown::deploy_to_branch(new_process = FALSE)'
- name: Build pkgdown website
if: contains(env.isExtPR, 'true')
run: |
Rscript -e 'pkgdown::build_site(new_process = FALSE)'
1 change: 1 addition & 0 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@ Suggests:
knitr,
rmarkdown
VignetteBuilder: knitr
Config/Needs/website:r-dbi/dbitemplate
4 changes: 3 additions & 1 deletion _pkgdown.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
url: https://r-dbi.github.io/dbi3

template:
package: dbitemplate
bootstrap: 5

0 comments on commit 6ef1f4f

Please sign in to comment.