Skip to content

Commit e203269

Browse files
authored
Fix cache key for production
1 parent 85e3538 commit e203269

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/deploy-production.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
id: gatsby-cache-folder
5151
with:
5252
path: .cache
53-
key: ${{ runner.os }}-cache-gatsby-main
53+
key: ${{ runner.os }}-cache-gatsby-${{ github.ref }}
5454
restore-keys: |
5555
${{ runner.os }}-cache-gatsby-main
5656
@@ -59,7 +59,7 @@ jobs:
5959
id: gatsby-public-folder
6060
with:
6161
path: public/
62-
key: ${{ runner.os }}-public-gatsby-main
62+
key: ${{ runner.os }}-public-gatsby-${{ github.ref }}
6363
restore-keys: |
6464
${{ runner.os }}-public-gatsby-main
6565

0 commit comments

Comments
 (0)