Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue 26: Create CI for GitHub pages website #31

Merged
merged 6 commits into from
May 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we don't want the master stuff here

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")