Skip to content

Commit

Permalink
Cleaning how cache is used
Browse files Browse the repository at this point in the history
  • Loading branch information
gvegayon committed Oct 2, 2024
1 parent 2300431 commit 4d56712
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions .github/workflows/website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
with:
key: ${{ format('vignette-{0}-{1}', matrix.files.fn, hashFiles(format('./vignettes/{0}.Rmd', matrix.files.fn))) }}
path:
${{ format('vignettes/{0}.html', matrix.files.fn) }}
${{ format('vignettes/{0}*', matrix.files.fn) }}

- name: Install packages
if: steps.cache.outputs.cache-hit != 'true'
Expand All @@ -53,23 +53,6 @@ jobs:
if: steps.cache.outputs.cache-hit != 'true'
run: Rscript --vanilla -e 'rmarkdown::render("vignettes/${{ matrix.files.fn }}.Rmd", output_format = "rmarkdown::html_document")'


- name: Save cache
if: steps.cache.outputs.cache-hit != 'true'
uses: actions/cache/save@v3
with:
key: ${{ format('vignette-{0}-{1}', matrix.files.fn, hashFiles(format('./vignettes/{0}.Rmd', matrix.files.fn))) }}
path:
${{ format('vignettes/{0}.html', matrix.files.fn) }}

- name: Restore cache
uses: actions/cache/restore@v3
if: steps.cache.outputs.cache-hit == 'true'
with:
key: ${{ format('vignette-{0}-{1}', matrix.files.fn, hashFiles(format('./vignettes/{0}.Rmd', matrix.files.fn))) }}
path:
${{ format('vignettes/{0}.html', matrix.files.fn) }}

- uses: actions/upload-artifact@v4
with:
name: ${{ matrix.files.fn }}
Expand Down

0 comments on commit 4d56712

Please sign in to comment.