Skip to content

Commit

Permalink
Update rwasm build & deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
coatless committed Jan 22, 2025
1 parent 7b6602b commit 9c041cb
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/altdoc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ jobs:
with:
packages: "."
repo-path: "_site"
webr-image: "ghcr.io/r-wasm/webr:v0.3.3"
webr-image: "ghcr.io/r-wasm/webr:v0.4.2" # fixed version for now

# Upload the CRAN repository for use in the next step
# Make sure to set a retention day to avoid running into a cap
- name: Upload build artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: rwasmrepo
path: |
Expand Down Expand Up @@ -80,28 +80,30 @@ jobs:
install.packages(".", repos = NULL, type = "source")
install.packages("pkgload")
pkgload::load_all()
altdoc::render_docs(parallel = FALSE, freeze = FALSE)
altdoc::render_docs(verbose = TRUE, parallel = FALSE, freeze = FALSE)
shell: Rscript {0}

- name: Copy to new directory
run: |
cp -r docs _site
mkdir -p _site
cp -r *quarto/*site/* _site/
# New material ---

# Download the built R WASM CRAN repository from the prior step.
# Extract it into the `_site` directory
- name: Download build artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: rwasmrepo
path: _site
merge-multiple: true

# Upload a tar file that will work with GitHub Pages
# Make sure to set a retention day to avoid running into a cap
# This artifact shouldn't be required after deployment onto pages was a success.
- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v2
uses: actions/upload-pages-artifact@v3
with:
retention-days: 1

Expand All @@ -110,4 +112,4 @@ jobs:
# instead of using `docs/` or the `gh-pages` branch of the repository
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
uses: actions/deploy-pages@v4

0 comments on commit 9c041cb

Please sign in to comment.