Skip to content

Commit cb0f499

Browse files
authored
Issue 26: Create CI for GitHub pages website (#31)
* 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 Former-commit-id: 6930bfe Former-commit-id: 88dcf5d2274d704437b48ccb55b714e51eb046ff
1 parent 2304386 commit cb0f499

File tree

4 files changed

+18
-6
lines changed

4 files changed

+18
-6
lines changed

.github/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.html

.github/workflows/pkgdown.yaml

+10-3
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,18 @@
1-
# Workflow derived from https://github.com/r-lib/actions/tree/master/examples
1+
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
22
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
33
on:
44
push:
55
branches: [main]
6-
tags: ['*']
6+
pull_request:
7+
branches: [main]
8+
release:
9+
types: [published]
710
workflow_dispatch:
8-
11+
912
name: pkgdown
1013

14+
permissions: read-all
15+
1116
jobs:
1217
pkgdown:
1318
runs-on: ubuntu-latest
@@ -16,6 +21,8 @@ jobs:
1621
group: pkgdown-${{ github.event_name != 'pull_request' || github.run_id }}
1722
env:
1823
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
24+
permissions:
25+
contents: write
1926
steps:
2027
- uses: actions/checkout@v4
2128

DESCRIPTION

+6-1
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,16 @@ Imports:
2929
ggplot2,
3030
posterior,
3131
purrr
32-
Suggests:
32+
Suggests:
33+
bookdown,
3334
epinowcast,
3435
testthat (>= 3.0.0)
3536
Remotes:
3637
stan-dev/cmdstanr,
3738
Rdatatable/data.table,
3839
epinowcast/epinowcast
40+
Config/Needs/website:
41+
r-lib/pkgdown,
42+
epinowcast/enwtheme
3943
Config/testthat/edition: 3
44+
URL: https://epidist.epinowcast.org/

_pkgdown.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
url: epidist.epinowcast.org/
1+
url: https://epidist.epinowcast.org/
22
template:
33
package: enwtheme
44

@@ -30,4 +30,3 @@ reference:
3030
desc: Functions and helper functions for plotting
3131
contents:
3232
- has_concept("plot")
33-

0 commit comments

Comments
 (0)