Skip to content

Commit

Permalink
Build and publish R docs alongside web app. #67
Browse files Browse the repository at this point in the history
Based on
https://github.com/acteng/netgen/blob/main/.github/workflows/pkgdown.yaml.
Testing blindly by actually running in GH.
  • Loading branch information
dabreegster committed Sep 10, 2024
1 parent 4ad8433 commit 4cb8468
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,24 @@ jobs:
npm run wasm
npm run build --if-present
- uses: r-lib/actions/setup-pandoc@v2

- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true

- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::pkgdown, local::.
needs: website

- name: Build R docs
run: pkgdown::build_site_github_pages(pkg = "r", new_process = FALSE, install = FALSE)
shell: Rscript {0}

- name: Copy R docs
run: mv docs web/dist/r/

- name: Publish
uses: peaceiris/actions-gh-pages@v3
with:
Expand Down

0 comments on commit 4cb8468

Please sign in to comment.