Skip to content

Releasing patch 1.0.2 #122

Releasing patch 1.0.2

Releasing patch 1.0.2 #122

Workflow file for this run

# 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, dev]
pull_request:
branches: [main, dev]
release:
types: [published]
workflow_dispatch:
name: pkgdown
jobs:
pkgdown:
runs-on: ubuntu-latest
# Only restrict concurrency for non-PR jobs
concurrency:
group: pkgdown-${{ github.event_name != 'pull_request' || github.run_id }}
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
R_KEEP_PKG_SOURCE: yes
RENV_PATHS_ROOT: ~/.local/share/renv
permissions:
contents: write
steps:
- name: rirods
uses: actions/checkout@v3
- name: Setup iRODS demo
run: |
cd ./inst/irods_demo
git submodule update --init --recursive
docker-compose up -d nginx-reverse-proxy
- uses: r-lib/actions/setup-pandoc@v2
- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y libcurl4-openssl-dev
- name: Cache packages
uses: actions/cache@v1
with:
path: ${{ env.RENV_PATHS_ROOT }}
key: ${{ runner.os }}-renv-${{ hashFiles('**/renv.lock') }}
restore-keys: |
${{ runner.os }}-renv-
- name: Restore packages
shell: Rscript {0}
run: |
if (!requireNamespace("renv", quietly = TRUE)) install.packages("renv")
renv::restore(repos = c(CRAN = "https://cloud.r-project.org"))
if (!requireNamespace("pkgdown", quietly = TRUE)) install.packages("pkgdown")
if (!requireNamespace("devtools", quietly = TRUE)) install.packages("devtools")
devtools::install()
Sys.setenv(R_USER_CONFIG_DIR = tempdir())
- name: Build site
run: pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE)
shell: Rscript {0}
- name: Deploy to GitHub pages 🚀
if: github.event_name != 'pull_request'
uses: JamesIves/github-pages-deploy-action@v4.4.1
with:
clean: false
branch: gh-pages
folder: docs