Skip to content

Commit

Permalink
Issue 26: Create CI for GitHub pages website (#31)
Browse files Browse the repository at this point in the history
* Run use_pkgdown_github_pages()

* Revert version roll back

* Remove "master" branch

* Add pkgdown and enwtheme dependencies for website

* Remove whitespace (?)

* Add bookdown to Suggests
  • Loading branch information
athowes authored May 15, 2024
1 parent e587081 commit 6930bfe
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 6 deletions.
1 change: 1 addition & 0 deletions .github/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.html
13 changes: 10 additions & 3 deletions .github/workflows/pkgdown.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
# Workflow derived from https://github.com/r-lib/actions/tree/master/examples
# 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]
tags: ['*']
pull_request:
branches: [main]
release:
types: [published]
workflow_dispatch:

name: pkgdown

permissions: read-all

jobs:
pkgdown:
runs-on: ubuntu-latest
Expand All @@ -16,6 +21,8 @@ jobs:
group: pkgdown-${{ github.event_name != 'pull_request' || github.run_id }}
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
permissions:
contents: write
steps:
- uses: actions/checkout@v4

Expand Down
7 changes: 6 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,16 @@ Imports:
ggplot2,
posterior,
purrr
Suggests:
Suggests:
bookdown,
epinowcast,
testthat (>= 3.0.0)
Remotes:
stan-dev/cmdstanr,
Rdatatable/data.table,
epinowcast/epinowcast
Config/Needs/website:
r-lib/pkgdown,
epinowcast/enwtheme
Config/testthat/edition: 3
URL: https://epidist.epinowcast.org/
3 changes: 1 addition & 2 deletions _pkgdown.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
url: epidist.epinowcast.org/
url: https://epidist.epinowcast.org/
template:
package: enwtheme

Expand Down Expand Up @@ -30,4 +30,3 @@ reference:
desc: Functions and helper functions for plotting
contents:
- has_concept("plot")

0 comments on commit 6930bfe

Please sign in to comment.