Skip to content

Commit

Permalink
Merge pull request #20 from StochasticTree/update-docs-gha
Browse files Browse the repository at this point in the history
Removed test GHA and updated pkgdown GHA to use the source in the central stochtree monorepo
  • Loading branch information
andrewherren committed Jun 20, 2024
2 parents 39942de + a236965 commit 02992eb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 50 deletions.
16 changes: 6 additions & 10 deletions .github/workflows/pkgdown.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
# 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, master]
pull_request:
branches: [main, master]
release:
types: [published]
workflow_dispatch:

name: pkgdown
Expand All @@ -24,6 +18,7 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
repository: 'StochasticTree/stochtree-cpp'
submodules: 'recursive'

- uses: r-lib/actions/setup-pandoc@v2
Expand All @@ -34,12 +29,13 @@ jobs:

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

- name: Build site
run: pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE)
shell: Rscript {0}
- name: Build doc site
run: |
Rscript cran-bootstrap.R
Rscript -e 'pkgdown::build_site_github_pages("stochtree_cran", install = TRUE)'
- name: Deploy to GitHub pages 🚀
if: github.event_name != 'pull_request'
Expand Down
40 changes: 0 additions & 40 deletions .github/workflows/test.yml

This file was deleted.

0 comments on commit 02992eb

Please sign in to comment.