pkgdown #99
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Workflow derived from https://github.com/r-lib/actions/tree/master/examples | |
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help | |
on: | |
#push: | |
# # To publish docs from your branch: list the branch name here instead of main. | |
# branches: [main] | |
#pull_request: | |
# # To publish docs from your branch: list the branch name here instead of main. | |
# branches: [main] | |
release: | |
types: [published] | |
schedule: | |
- cron: "42 9 * * *" | |
workflow_dispatch: | |
name: pkgdown | |
jobs: | |
pkgdown: | |
runs-on: ubuntu-latest | |
# This is GitHub Actions magic -- there are no secrets we as package owners need to set up or manage | |
env: | |
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: r-lib/actions/setup-pandoc@v1 | |
with: | |
working-directory: "apis/r" | |
- uses: r-lib/actions/setup-r@v2 | |
with: | |
use-public-rspm: true | |
working-directory: "apis/r" | |
# Run this daily to surface errors as tracked at | |
# https://github.com/single-cell-data/TileDB-SOMA/issues/2052 | |
- name: Install dependencies | |
run: ./apis/r/tools/install-pkgdown-dependencies.sh | |
# Run this on releases, or on workflow dispatch | |
- name: Deploy package | |
if: github.event_name != 'schedule' | |
run: ./apis/r/tools/deploy-pkgdown.sh |