]> git.otsuka.systems Git - cotsuka.github.io/commitdiff
i wish there was a way to test cache actions locally
authorCameron Otsuka <cameron@otsuka.haus>
Mon, 29 Dec 2025 19:58:28 +0000 (11:58 -0800)
committerCameron Otsuka <cameron@otsuka.haus>
Mon, 29 Dec 2025 19:58:28 +0000 (11:58 -0800)
.github/workflows/deploy-to-ghpages.yml

index 9c5167fd38ad8bad6127ca5b0fcde045df98fe03..f5e08353fb6487937479b733a76dc376bc184099 100644 (file)
@@ -28,7 +28,7 @@ jobs:
         uses: actions/cache@v5
         with:
           path: .astro-cache/assets/
-          key: astro-images-${{ hashFiles('src/assets/**/*', 'src/content/**/*.{gif,jpg,png,svg,webp}') }}
+          key: astro-images-${{ hashFiles('src/assets/**/*', '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('content/**/*.{md,mdx}') }}
           restore-keys: |
             og-images-