File tree Expand file tree Collapse file tree 3 files changed +51
-19
lines changed
Expand file tree Collapse file tree 3 files changed +51
-19
lines changed Original file line number Diff line number Diff line change 1+ name : Build ISCAM workspace
2+
3+ on :
4+ push :
5+ branches : [main]
6+ pull_request :
7+ workflow_dispatch :
8+
9+ permissions :
10+ contents : write
11+
12+ jobs :
13+ build-rdata :
14+ if : ${{ github.actor != 'github-actions[bot]' }}
15+ runs-on : ubuntu-latest
16+
17+ steps :
18+ - uses : actions/checkout@v4
19+ with :
20+ fetch-depth : 0
21+
22+ - uses : r-lib/actions/setup-r@v2
23+ - uses : r-lib/actions/setup-r-dependencies@v2
24+ with :
25+ extra-packages : any::devtools
26+
27+ - run : mkdir -p docs
28+
29+ - name : Generate RData workspace file
30+ run : |
31+ devtools::load_all()
32+ iscamdata <- ls(getNamespace("ISCAM"), all.names = TRUE)
33+ iscamdata <- c(
34+ iscamdata[
35+ !iscamdata %in%
36+ c(
37+ ".__DEVTOOLS__",
38+ ".__NAMESPACE__.",
39+ ".__S3MethodsTable__.",
40+ ".packageName"
41+ )
42+ ],
43+ Sys.glob("data/*.rda") |> basename() |> gsub("\\.rda$", "", x = _)
44+ )
45+ save(list = iscamdata, file = "docs/ISCAM.RData")
46+ shell : Rscript {0}
47+
48+ - uses : stefanzweifel/git-auto-commit-action@v5
49+ with :
50+ commit_message : " chore: update ISCAM.RData [skip ci]"
51+ file_pattern : dev/ISCAM.RData
Original file line number Diff line number Diff line change 4040 run : pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE)
4141 shell : Rscript {0}
4242
43- - name : Generate RData workspace file
44- run : |
45- devtools::load_all()
46- iscamdata <- ls(getNamespace("ISCAM"), all.names = TRUE)
47- iscamdata <- c(
48- iscamdata[
49- !iscamdata %in%
50- c(
51- ".__DEVTOOLS__",
52- ".__NAMESPACE__.",
53- ".__S3MethodsTable__.",
54- ".packageName"
55- )
56- ],
57- Sys.glob("data/*.rda") |> basename() |> gsub("\\.rda$", "", x = _)
58- )
59- save(list = iscamdata, file = "docs/ISCAM.RData")
60- shell : Rscript {0}
61-
6243 - name : Deploy site
6344 run : |
6445 git config --global user.name "${{ github.actor }}"
You can’t perform that action at this time.
0 commit comments