Skip to content

Commit

Permalink
build website for release version
Browse files Browse the repository at this point in the history
  • Loading branch information
LiNk-NY committed Nov 22, 2023
1 parent 561265b commit db8f36a
Showing 1 changed file with 15 additions and 21 deletions.
36 changes: 15 additions & 21 deletions .github/workflows/pkgdown.yaml
Expand Up @@ -2,16 +2,21 @@ name: build
on:
push:
branches:
- devel
- RELEASE_3_18

env:
cache-version: v1

jobs:
build:
runs-on: ubuntu-latest
container: bioconductor/bioconductor_docker:latest
runs-on: ubuntu-22.04
container: bioconductor/bioconductor_docker:RELEASE_3_18

env:
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
R_REMOTES_STANDALONE: TRUE
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
CRAN: https://packagemanager.posit.co/cran/__linux__/jammy/latest

steps:
- name: Checkout Repository
Expand All @@ -25,33 +30,22 @@ jobs:

- name: Cache R packages
if: runner.os != 'Windows'
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: /usr/local/lib/R/site-library
key: ${{ runner.os }}-r-1-${{ hashFiles('.github/depends.Rds') }}
restore-keys: ${{ runner.os }}-r-1-

# This lets us augment with additional dependencies
- name: Install system dependencies
if: runner.os == 'Linux'
env:
RHUB_PLATFORM: linux-x86_64-ubuntu-gcc
run: |
Rscript -e "remotes::install_github('r-hub/sysreqs')"
sysreqs=$(Rscript -e "cat(sysreqs::sysreq_commands('DESCRIPTION'))")
sudo -s eval "$sysreqs"
key: ${{ env.cache-version }}-${{ runner.os }}-r-${{ hashFiles('.github/depends.Rds') }}
restore-keys: ${{ env.cache-version }}-${{ runner.os }}-r-

- name: Install dependencies
- name: Install Package Dependencies
run: |
options(repos = c(CRAN = "https://packagemanager.posit.co/cran/__linux__/jammy/latest"))
remotes::install_deps(dependencies = TRUE, repos = BiocManager::repositories())
remotes::install_local(dependencies = TRUE, repos = BiocManager::repositories(), build_vignettes = TRUE, upgrade = TRUE)
BiocManager::install(c("rcmdcheck", "pkgdown"), ask = FALSE, update = TRUE)
shell: Rscript {0}

- name: Check
- name: Check Package
env:
_R_CHECK_CRAN_INCOMING_REMOTE_: false
run: rcmdcheck::rcmdcheck(args = c("--no-manual"), error_on = "warning", check_dir = "check")
run: rcmdcheck::rcmdcheck(args = "--no-manual", error_on = "warning", check_dir = "check")
shell: Rscript {0}

- name: generate codecov report
Expand Down

0 comments on commit db8f36a

Please sign in to comment.