Skip to content

Commit 0cefed3

Browse files
committed
Also fix ExportPluto action
1 parent a8ab132 commit 0cefed3

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

.github/workflows/ExportPluto.yaml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,25 @@ jobs:
3030
version: "1" # This will automatically pick the latest Julia version
3131

3232
- name: Cache Julia artifacts & such
33-
uses: julia-actions/cache@v1
33+
uses: julia-actions/cache@v2
3434
with:
35-
cache-registries: "true"
35+
# Contains the node .env for PlutoPDF.
36+
# Since it needs to be in sync with the puppeteer cache, we cache it separately.
37+
cache-scratchspaces: false
38+
- name: Set up PlutoPDF caches
39+
uses: actions/cache@v4
40+
with:
41+
path: |
42+
~/.julia/scratchspaces
43+
~/.cache/puppeteer
44+
key: ${{ runner.os }}-plutopdf_cache-${{ hashFiles('**/Project.toml', '**/Manifest.toml', '.github/workflows/*' ) }}
3645

3746
# We set up a folder that Pluto can use to cache exported
3847
# notebooks. If the notebook file did not change, then Pluto can
3948
# take the exported file from cache instead of running the
4049
# notebook.
4150
- name: Set up notebook state cache
42-
uses: actions/cache@v3
51+
uses: actions/cache@v4
4352
with:
4453
path: pluto_state_cache
4554
key: ${{ runner.os }}-pluto_state_cache-v2-${{ hashFiles('**/Project.toml', '**/Manifest.toml', '.github/workflows/*' ) }}-${{ hashFiles('**/*jl') }}

0 commit comments

Comments
 (0)