Skip to content

Commit

Permalink
ci: add workflow to deploy pkgdown site
Browse files Browse the repository at this point in the history
  • Loading branch information
kyleam committed Dec 18, 2024
1 parent 82eee18 commit 487888d
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/site.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Deploy site
on:
push:
branches:
- scratch/deploy-site
tags:
- '[0-9]+.[0-9]+.[0-9]+'
workflow_dispatch:

jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
# Fetch tags for more informative git-describe output.
fetch-depth: 0
- uses: r-lib/actions/setup-pandoc@v2
- uses: r-lib/actions/setup-r@v2
with:
r-version: release
use-public-rspm: true
- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::pkgdown
- name: Build site
run: pkgdown::build_site_github_pages(dest_dir = "docs", install = TRUE)
shell: Rscript {0}
- uses: metrumresearchgroup/actions/subdir-to-gh-pages@v1

0 comments on commit 487888d

Please sign in to comment.