Skip to content

Commit 05630a4

Browse files
committed
simplify action
1 parent bb8ba01 commit 05630a4

File tree

1 file changed

+3
-30
lines changed

1 file changed

+3
-30
lines changed

.github/workflows/publish.yaml

Lines changed: 3 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -24,39 +24,12 @@ jobs:
2424
run: |
2525
brew install pandoc
2626
27-
- name: Query dependencies
28-
run: |
29-
install.packages('remotes')
30-
saveRDS(remotes::dev_package_deps(dependencies = TRUE), ".github/depends.Rds", version = 2)
31-
writeLines(sprintf("R-%i.%i", getRversion()$major, getRversion()$minor), ".github/R-version")
32-
shell: Rscript {0}
33-
34-
- name: Cache R packages
35-
uses: actions/cache@v4.1.2
36-
with:
37-
path: ${{ env.R_LIBS_USER }}
38-
key: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-2-${{ hashFiles('.github/depends.Rds') }}
39-
restore-keys: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-2-
40-
41-
- name: Install dependencies
42-
run: |
43-
install.packages(c("remotes"))
44-
remotes::install_deps(dependencies = TRUE)
45-
remotes::install_cran("covr")
46-
shell: Rscript {0}
47-
48-
- name: Cache bookdown results
49-
uses: actions/cache@v4.1.2
50-
with:
51-
path: _bookdown_files
52-
key: bookdown-${{ hashFiles('**/*Rmd') }}
53-
restore-keys: bookdown-
54-
55-
- name: Build manual
27+
- name: Build design specification
5628
run: |
29+
install.packages("bookdown")
5730
bookdown::render_book(input = "index.Rmd", output_format = "bookdown::gitbook")
5831
shell: Rscript {0}
5932

60-
- name: Publish manual
33+
- name: Publish design specification
6134
run: |
6235
./inst/publish.sh

0 commit comments

Comments
 (0)