From e60d5001a7ae957d85203bd770ec2b58bf36644d Mon Sep 17 00:00:00 2001 From: tiennm99 Date: Fri, 7 Mar 2025 01:29:57 +0700 Subject: [PATCH] feat: update cache in github actions --- .github/workflows/deploy-pages.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy-pages.yml b/.github/workflows/deploy-pages.yml index 6f008db..7148c40 100644 --- a/.github/workflows/deploy-pages.yml +++ b/.github/workflows/deploy-pages.yml @@ -46,7 +46,9 @@ jobs: with: path: | resources - key: ${{ runner.os }}-resources + key: ${{ runner.os }}-resources-${{ github.run_id }} + restore-keys: | + ${{ runner.os }}-resources- - name: Build with Hugo env: HUGO_CACHEDIR: ${{ runner.temp }}/hugo_cache @@ -62,7 +64,7 @@ jobs: with: path: | resources - key: ${{ runner.os }}-resources + key: ${{ runner.os }}-resources-${{ github.run_id }} - name: Upload artifact uses: actions/upload-pages-artifact@v3 with: