]> git.otsuka.systems Git - cotsuka.github.io/commitdiff
another try at cache paths
authorCameron Otsuka <cameron@otsuka.haus>
Mon, 29 Dec 2025 19:49:58 +0000 (11:49 -0800)
committerCameron Otsuka <cameron@otsuka.haus>
Mon, 29 Dec 2025 19:49:58 +0000 (11:49 -0800)
.github/workflows/deploy-to-ghpages.yml

index 004cafcb146417f173481c59107d5afbf27c438d..9c5167fd38ad8bad6127ca5b0fcde045df98fe03 100644 (file)
@@ -27,8 +27,8 @@ jobs:
       - name: Restore Astro image cache
         uses: actions/cache@v5
         with:
-          path: .astro-cache/assets
-          key: astro-images-${{ hashFiles('.astro-cache/assets/**/*') }}
+          path: .astro-cache/assets/
+          key: astro-images-${{ hashFiles('src/assets/**/*', 'src/content/**/*.{gif,jpg,png,svg,webp}') }}
           restore-keys: |
             astro-images-
 
@@ -36,7 +36,7 @@ jobs:
         uses: actions/cache@v5
         with:
           path: .og-cache/
-          key: og-images-${{ hashFiles('.og-cache/**/*') }}
+          key: og-images-${{ hashFiles('.og-cache/*') }}
           restore-keys: |
             og-images-