Skip to content

Commit

Permalink
Merge branch 'main' into 269_correct_SERREAS_derivation@main
Browse files Browse the repository at this point in the history
  • Loading branch information
shajoezhu authored Nov 26, 2024
2 parents 2c92894 + fa9dad4 commit 24d2839
Showing 1 changed file with 0 additions and 42 deletions.
42 changes: 0 additions & 42 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,27 +100,6 @@ jobs:
name: site-development
path: site.zip

- name: Remove large WebR assets 🧹
run: |
packages_path <- sprintf("./book/_site/site_libs/quarto-contrib/shinylive-%s/shinylive/webr/packages", shinylive::assets_version())
# remove the dirs with size > 100 MB
for (x in list.dirs(packages_path)) {
x_files <- file.info(list.files(x, full.names = TRUE))
if (any(x_files$size > 100 * 1024^2)) {
print(x)
print(x_files)
unlink(x, recursive = TRUE)
}
}
# refresh the `metadata.rds` file
metadata_path <- file.path(packages_path, "metadata.rds")
metadata <- readRDS(metadata_path)
new_metadata <- metadata[intersect(names(metadata), list.dirs(packages_path, full.names = FALSE))]
saveRDS(new_metadata, metadata_path)
shell: Rscript {0}

- name: Publish docs 📔
uses: peaceiris/actions-gh-pages@v3
with:
Expand Down Expand Up @@ -186,27 +165,6 @@ jobs:
shell: bash
working-directory: book/_site

- name: Remove large WebR assets 🧹
run: |
packages_path <- sprintf("./book/_site/site_libs/quarto-contrib/shinylive-%s/shinylive/webr/packages", shinylive::assets_version())
# remove the dirs with size > 100 MB
for (x in list.dirs(packages_path)) {
x_files <- file.info(list.files(x, full.names = TRUE))
if (any(x_files$size > 100 * 1024^2)) {
print(x)
print(x_files)
unlink(x, recursive = TRUE)
}
}
# refresh the `metadata.rds` file
metadata_path <- file.path(packages_path, "metadata.rds")
metadata <- readRDS(metadata_path)
new_metadata <- metadata[intersect(names(metadata), list.dirs(packages_path, full.names = FALSE))]
saveRDS(new_metadata, metadata_path)
shell: Rscript {0}

- name: Upload docs ⬆
if: startsWith(github.ref, 'refs/tags/v')
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit 24d2839

Please sign in to comment.