This repository contains the GHA reusable workflows that we use to sync, build, check, and deploy R packages on R-universe.
For deployment to https://r-universe.dev, builds are run inside the monorepos of the universe owner under the r-universe GitHub organization. For example packages from https://ropensci.r-universe.dev are built at: https://github.com/r-universe/ropensci/actions
For debugging purposes, it is also possible to run the R-universe build.yml workflow in your own R package repository on GitHub. To test this, create a file .github/workflows/r-universe-test.yml in your R package source like this:
name: Test R-universe
on:
push:
pull_request:
jobs:
build:
name: R-universe testing
uses: r-universe-org/workflows/.github/workflows/build.yml@v3
with:
universe: ${{ github.repository_owner }}The parameter universe is used to set the context to a given universe. This affects where R package dependencies are downloaded from (besides the default repositories).
Triggering this workflow in your own Git repo will run exaclty the same steps as r-universe, but without deploying anything. The workflow is deliberately not customizable as it serves to test and debug the exact process as it happens on R-universe.