Skip to content

Commit 2258bd5

Browse files
committed
Split out workspace creation
1 parent f4e5093 commit 2258bd5

File tree

3 files changed

+51
-19
lines changed

3 files changed

+51
-19
lines changed
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
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

.github/workflows/pkgdown.yaml

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -40,25 +40,6 @@ jobs:
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 }}"

docs/ISCAM.RData

-3.13 MB
Binary file not shown.

0 commit comments

Comments
 (0)