@@ -180,18 +180,19 @@ jobs:
180
180
with:
181
181
packages: "."
182
182
repo-path: "_site"
183
- webr-image: "ghcr.io/r-wasm/webr:v0.3.3 " # fixed version for now
184
-
183
+ webr-image: "ghcr.io/r-wasm/webr:v0.4.2 " # fixed version for now
184
+
185
185
# Upload the CRAN repository for use in the next step
186
186
# Make sure to set a retention day to avoid running into a cap
187
187
- name: Upload build artifact
188
- uses: actions/upload-artifact@v3
188
+ uses: actions/upload-artifact@v4
189
189
with:
190
190
name: rwasmrepo
191
191
path: |
192
192
_site
193
193
retention-days: 1
194
194
195
+
195
196
altdoc:
196
197
runs-on: ubuntu-latest
197
198
# Add a dependency on the prior job completing
@@ -228,28 +229,30 @@ jobs:
228
229
install.packages(".", repos = NULL, type = "source")
229
230
install.packages("pkgload")
230
231
pkgload::load_all()
231
- altdoc::render_docs(parallel = FALSE, freeze = FALSE)
232
+ altdoc::render_docs(verbose = TRUE, parallel = FALSE, freeze = FALSE)
232
233
shell: Rscript {0}
233
234
234
235
- name: Copy to new directory
235
236
run: |
236
- cp -r docs _site
237
-
237
+ mkdir -p _site
238
+ cp -r *quarto/*site/* _site/
239
+
238
240
# New material ---
239
241
240
242
# Download the built R WASM CRAN repository from the prior step.
241
243
# Extract it into the ` _site` directory
242
244
- name : Download build artifact
243
- uses : actions/download-artifact@v3
245
+ uses : actions/download-artifact@v4
244
246
with :
245
247
name : rwasmrepo
246
248
path : _site
249
+ merge-multiple : true
247
250
248
251
# Upload a tar file that will work with GitHub Pages
249
252
# Make sure to set a retention day to avoid running into a cap
250
253
# This artifact shouldn't be required after deployment onto pages was a success.
251
254
- name : Upload Pages artifact
252
- uses : actions/upload-pages-artifact@v2
255
+ uses : actions/upload-pages-artifact@v3
253
256
with :
254
257
retention-days : 1
255
258
@@ -258,7 +261,7 @@ jobs:
258
261
# instead of using `docs/` or the `gh-pages` branch of the repository
259
262
- name : Deploy to GitHub Pages
260
263
id : deployment
261
- uses : actions/deploy-pages@v2
264
+ uses : actions/deploy-pages@v4
262
265
` ` `
263
266
264
267
You can view the full workflow file here:
@@ -268,7 +271,7 @@ You can view the full workflow file here:
268
271
> [!IMPORTANT]
269
272
>
270
273
> We’ve fixed the version of webR being used to generate the R WASM
271
- > binaries to ` v0.3.3 ` for the `webr-image` in the `rwasmbuild` job.
274
+ > binaries to ` v0.4.2 ` for the `webr-image` in the `rwasmbuild` job.
272
275
> This is to ensure that a released/tagged version of webR is used
273
276
> instead of depending on the latest release, e.g. `latest` tag.
274
277
0 commit comments