diff --git a/.github/workflows/pkgdown.yaml b/.github/workflows/pkgdown.yaml index a3af403..e5b15da 100644 --- a/.github/workflows/pkgdown.yaml +++ b/.github/workflows/pkgdown.yaml @@ -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 @@ -24,6 +18,7 @@ jobs: steps: - uses: actions/checkout@v4 with: + repository: 'StochasticTree/stochtree-cpp' submodules: 'recursive' - uses: r-lib/actions/setup-pandoc@v2 @@ -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' diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml deleted file mode 100644 index 1fd990f..0000000 --- a/.github/workflows/test.yml +++ /dev/null @@ -1,40 +0,0 @@ -# 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] - pull_request: - branches: [main] - release: - types: [published] - workflow_dispatch: - -name: testthat - -jobs: - testing: - runs-on: ${{ matrix.os }} - - strategy: - fail-fast: false - matrix: - os: [ubuntu-latest, windows-latest, macos-latest] - - steps: - - uses: actions/checkout@v4 - with: - submodules: 'recursive' - - - 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::testthat, any::decor, local::. - - - name: Run unit tests - run: testthat::test_local() - shell: Rscript {0}