Skip to content

Website Docs Update #11

Website Docs Update

Website Docs Update #11

Workflow file for this run

name: Website Docs Update
# only build on new tagged versions (OR manually specified)
on:
push:
tags:
- 'v*'
workflow_dispatch:
jobs:
build-website:
name: build website PR
runs-on: macos-latest
steps:
- name: checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0 # checking out latest tag in next step
- name: Get Latest Version Tag
uses: WyriHaximus/[email protected]
with:
prefix: 'v'
- name: set up R
uses: r-lib/actions/setup-r@v2
with:
r-version: 'release'
- uses: r-lib/actions/setup-pandoc@v2
- uses: r-lib/actions/setup-tinytex@v2
- uses: r-lib/actions/setup-r-dependencies@v2
with:
packages: pkgdown
- name: Build Site
run: pkgdown::build_site()
shell: Rscript {0}
- name: Commit website doc changes
run: |
git config --local user.name "$GITHUB_ACTOR"
git config --local user.email "[email protected]"
git checkout -b website_update_${{steps.previoustag.outputs.tag}}
git add docs/\*
git commit -m "Update website documentation to ${{steps.previoustag.outputs.tag}}" || echo "No changes to commit"
git push origin website_update_${{steps.previoustag.outputs.tag}}