Skip to content

Keep caches fresh

Keep caches fresh #41

name: Keep caches fresh
on:
schedule:
- cron: "5 4 1/4 * *" # every 4 days
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: ⏱ Cache notebook states
uses: actions/cache@v2
with:
path: _cache
key: ${{ runner.os }}-pluto_state_cache-v3-${{ hashFiles('**/Project.toml', '**/Manifest.toml') }}-${{ github.run_id }}
restore-keys: |
${{ runner.os }}-pluto_state_cache-v3-${{ hashFiles('**/Project.toml', '**/Manifest.toml') }}
- name: ⏱ Cache .julia
uses: actions/cache@v2
with:
path: ~/.julia
key: ${{ runner.os }}-dotjulia-v1-${{ hashFiles('**/Project.toml', '**/Manifest.toml') }}-${{ github.run_id }}
restore-keys: |
${{ runner.os }}-dotjulia-v1-${{ hashFiles('**/Project.toml', '**/Manifest.toml') }}