Skip to content

Commit

Permalink
ci: ensure old cached assets are cleaned up before linking to new asstes
Browse files Browse the repository at this point in the history
  • Loading branch information
gadenbuie committed Jul 1, 2024
1 parent e8ab3f5 commit e296451
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,16 +84,17 @@ jobs:
id: r-linked-assets
shell: Rscript {0}
run: |
shinylive_local_version <- shinylive:::package_json_version("shinylive_assets")
shinylive::assets_remove(shinylive_local_version)
shinylive::assets_install_copy("shinylive_assets")
shinylive::assets_info()
cat(
"version=", shinylive:::package_json_version("shinylive_assets"),
"version=", shinylive_local_version,
file = Sys.getenv("GITHUB_OUTPUT"),
append = TRUE,
sep = ""
)
- name: Update lua script for debugging
shell: Rscript {0}
run: |
Expand Down Expand Up @@ -133,15 +134,12 @@ jobs:
shinylive::assets_ensure()
testthat::test_local()
- name: Link shinylive assets for py-shinylive
shell: bash
run: |
shinylive assets link-from-local shinylive_assets/build
- name: Test shinylive quarto extension with latest shinylive assets
uses: quarto-dev/quarto-actions/render@v2
env:
# TODO: py-shinylive doesn't follow this envvar yet. If shinylive
# has a newer version, this action will fail.
SHINYLIVE_ASSETS_VERSION: ${{ steps.r-linked-assets.outputs.version }}
with:
path: local/quarto/
Expand Down

0 comments on commit e296451

Please sign in to comment.