diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index bc2e3cb5d..05c3fd655 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -41,7 +41,10 @@ jobs: with: path: | ./_freeze/ - key: ${{ runner.os }}-${{ hashFiles('**/Manifest.toml') }} + key: | + ${{ runner.os }}-${{ hashFiles('**/Manifest.toml') }}-${{ hashFiles('**/index.qmd') }} + restore-keys: | + ${{ runner.os }}-${{ hashFiles('**/Manifest.toml') }} - name: Render Quarto site run: quarto render diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 3e8ffded9..5120d3a71 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -43,7 +43,10 @@ jobs: with: path: | ./_freeze/ - key: ${{ runner.os }}-${{ hashFiles('**/Manifest.toml') }} + key: | + ${{ runner.os }}-${{ hashFiles('**/Manifest.toml') }}-${{ hashFiles('**/index.qmd') }} + restore-keys: | + ${{ runner.os }}-${{ hashFiles('**/Manifest.toml') }} - name: Extract version from _quarto.yml id: extract_version