Skip to content

Commit

Permalink
gh pages pkgdown build
Browse files Browse the repository at this point in the history
  • Loading branch information
aspina7 committed Aug 26, 2022
1 parent ef4322b commit a52409e
Show file tree
Hide file tree
Showing 5 changed files with 57 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@
^appveyor\.yml$
^codecov\.yml$
^docs$
^_pkgdown\.yml$
^pkgdown$
46 changes: 46 additions & 0 deletions .github/workflows/pkgdown.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
release:
types: [published]
workflow_dispatch:

name: pkgdown

jobs:
pkgdown:
runs-on: ubuntu-latest
# Only restrict concurrency for non-PR jobs
concurrency:
group: pkgdown-${{ github.event_name != 'pull_request' || github.run_id }}
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v2

- uses: r-lib/actions/setup-pandoc@v2

- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true

- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::pkgdown, local::.
needs: website

- name: Build site
run: pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE)
shell: Rscript {0}

- name: Deploy to GitHub pages 🚀
if: github.event_name != 'pull_request'
uses: JamesIves/[email protected]
with:
clean: false
branch: gh-pages
folder: docs
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,4 @@ vignettes/*.pdf
# README html preview
README.html
inst/doc
docs
5 changes: 4 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@ Description: The 'R4EPIs' project <https://R4epis.netlify.com> seeks to provide
Syndrome, Cholera, Measles, Meningitis) and three surveys (Retrospective
mortality and access to care, Malnutrition, and Vaccination coverage). In
addition, a data generator from these dictionaries is provided.
URL: https://r4epis.netlify.com, https://github.com/R4EPI/epidict, https://r4epi.github.io/epidict
URL: https://r4epis.netlify.com,
https://github.com/R4EPI/epidict,
https://r4epi.github.io/epidict,
https://r4epi.github.io/epidict/
License: GPL-3
Imports:
tibble,
Expand Down
4 changes: 4 additions & 0 deletions _pkgdown.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
url: https://r4epi.github.io/epidict/
template:
bootstrap: 5

0 comments on commit a52409e

Please sign in to comment.