Skip to content

Commit

Permalink
updates for pkgdown
Browse files Browse the repository at this point in the history
  • Loading branch information
mtwesley committed Nov 29, 2024
1 parent bf9c8db commit 9a4586a
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 12 deletions.
25 changes: 14 additions & 11 deletions .github/workflows/pkgdown.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ name: pkgdown

jobs:
pkgdown:
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
env:
RSPM: https://packagemanager.rstudio.com/cran/__linux__/bionic/latest
RSPM: https://packagemanager.rstudio.com/cran/__linux__/jammy/latest
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}

steps:
Expand All @@ -27,14 +27,16 @@ jobs:
saveRDS(pak::pkg_deps("local::.", dependencies = TRUE), ".github/r-depends.rds")
shell: Rscript {0}

- name: Restore R package cache
uses: actions/cache@v2
with:
path: |
${{ env.R_LIBS_USER }}/*
!${{ env.R_LIBS_USER }}/pak
key: ubuntu-18.04-${{ steps.install-r.outputs.installed-r-version }}-1-${{ hashFiles('.github/r-depends.rds') }}
restore-keys: ubuntu-18.04-${{ steps.install-r.outputs.installed-r-version }}-1-
# - name: Restore R package cache
# uses: actions/cache@v2
# with:
# path: |
# ${{ env.R_LIBS_USER }}/*
# !${{ env.R_LIBS_USER }}/pak
# key: ubuntu-22.04-${{ steps.install-r.outputs.installed-r-version }}-1-${{ hashFiles('.github/r-depends.rds') }}
# restore-keys: |
# ubuntu-22.04-${{ steps.install-r.outputs.installed-r-version }}-
# ubuntu-22.04-

- name: Install system dependencies
if: runner.os == 'Linux'
Expand All @@ -50,7 +52,8 @@ jobs:
shell: Rscript {0}

- name: Install package
run: R CMD INSTALL .
run: pak::pkg_install(".", upgrade = TRUE)
shell: Rscript {0}

- name: Build and deploy pkgdown site
run: |
Expand Down
21 changes: 20 additions & 1 deletion _pkgdown.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,29 @@
home:
title: greta.censored
description: Censored Distributions for 'greta'
links:
- text: "Install from CRAN"
href: "https://CRAN.R-project.org/package=greta.censored"

navbar:
structure:
left:
- text: Reference
href: reference/index.html
- text: Articles
href: articles/index.html
href: articles/index.html

template:
params:
bootswatch: cerulean
footer:
links:
- text: "GitHub"
href: "https://github.com/mtwesley/greta.censored"
- text: "CRAN"
href: "https://CRAN.R-project.org/package=greta.censored"
- text: "Code of Conduct"
href: "https://github.com/mtwesley/greta.censored/blob/main/CODE_OF_CONDUCT.md"

news:
one_page: true

0 comments on commit 9a4586a

Please sign in to comment.