Skip to content

Commit

Permalink
Further refined paths
Browse files Browse the repository at this point in the history
  • Loading branch information
silicontwin committed Sep 26, 2024
1 parent 30f04a4 commit aecd2ae
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/generated-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,11 @@ jobs:
Rscript -e 'install.packages(c("pkgdown", "ggplot2", "latex2exp", "decor"))'
- name: Build R Documentation
working-directory: stochtree-repo
working-directory: stochtree-repo/R
run: |
Rscript cran-bootstrap.R
cp _pkgdown.yml R/stochtree_cran/_pkgdown.yml
cp R_README.md R/stochtree_cran/README.md
cd R
Rscript ../cran-bootstrap.R
cp ../_pkgdown.yml ./
cp ../R_README.md README.md
Rscript -e 'pkgdown::build_site(install = TRUE)'
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -90,10 +89,10 @@ jobs:
run: |
# Ensure the target directory exists
mkdir -p docs/r-documentation
# Clear existing content, if present
# Clear existing content
rm -rf docs/r-documentation/*
# Copy the built documentation
cp -r stochtree-repo/R/stochtree_cran/docs/* docs/r-documentation/
cp -r stochtree-repo/R/docs/* docs/r-documentation/
# Commit and Push Changes
- name: Commit and Push Documentation Changes
Expand Down

0 comments on commit aecd2ae

Please sign in to comment.