From 1c21a52d63335c074f49c741931a54c9b5738f5f Mon Sep 17 00:00:00 2001 From: Penelope Yong Date: Sat, 2 Nov 2024 20:59:55 +0000 Subject: [PATCH] Cache _freeze correctly (#546) --- .github/workflows/preview.yml | 2 +- .github/workflows/publish.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index 5382b9deb..15f35b84c 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -58,7 +58,7 @@ jobs: with: path: | ./_freeze/ - key: ${{ runner.os }}-${{ hashFiles('**/Manifest.toml') }} + key: ${{ runner.os }}-${{ hashFiles('**/Manifest.toml') }}-${{ hashFiles('**/index.qmd') }} - name: Deploy to GitHub Pages uses: JamesIves/github-pages-deploy-action@v4 diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 50e7a5416..5b8e35a6f 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -90,7 +90,7 @@ jobs: with: path: | ./_freeze/ - key: ${{ runner.os }}-${{ hashFiles('**/Manifest.toml') }} + key: ${{ runner.os }}-${{ hashFiles('**/Manifest.toml') }}-${{ hashFiles('**/index.qmd') }} - name: Fetch search_original.json from main site run: curl -O https://raw.githubusercontent.com/TuringLang/turinglang.github.io/gh-pages/search_original.json