Skip to content

Commit

Permalink
simplify action
Browse files Browse the repository at this point in the history
  • Loading branch information
wlandau-lilly committed Nov 7, 2024
1 parent bb8ba01 commit 05630a4
Showing 1 changed file with 3 additions and 30 deletions.
33 changes: 3 additions & 30 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,39 +24,12 @@ jobs:
run: |
brew install pandoc
- name: Query dependencies
run: |
install.packages('remotes')
saveRDS(remotes::dev_package_deps(dependencies = TRUE), ".github/depends.Rds", version = 2)
writeLines(sprintf("R-%i.%i", getRversion()$major, getRversion()$minor), ".github/R-version")
shell: Rscript {0}

- name: Cache R packages
uses: actions/[email protected]
with:
path: ${{ env.R_LIBS_USER }}
key: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-2-${{ hashFiles('.github/depends.Rds') }}
restore-keys: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-2-

- name: Install dependencies
run: |
install.packages(c("remotes"))
remotes::install_deps(dependencies = TRUE)
remotes::install_cran("covr")
shell: Rscript {0}

- name: Cache bookdown results
uses: actions/[email protected]
with:
path: _bookdown_files
key: bookdown-${{ hashFiles('**/*Rmd') }}
restore-keys: bookdown-

- name: Build manual
- name: Build design specification
run: |
install.packages("bookdown")
bookdown::render_book(input = "index.Rmd", output_format = "bookdown::gitbook")
shell: Rscript {0}

- name: Publish manual
- name: Publish design specification
run: |
./inst/publish.sh

0 comments on commit 05630a4

Please sign in to comment.