Skip to content

Commit e187a17

Browse files
committed
Cache Gatsby .cache and public folders
Signed-off-by: Lee Calcote <lee.calcote@layer5.io>
1 parent 4d5afef commit e187a17

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

.github/workflows/build-and-deploy-site.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,17 @@ jobs:
1717
with:
1818
fetch-depth: 1
1919

20+
- name: Cache Gatsby .cache and public folders
21+
uses: actions/cache@v4
22+
id: gatsby-cache
23+
with:
24+
path: |
25+
public
26+
.cache
27+
key: ${{ runner.os }}-gatsby-${{ hashFiles('**/package-lock.json') }}
28+
restore-keys: |
29+
${{ runner.os }}-gatsby-
30+
2031
- name: Install and Build 🔧
2132
run: |
2233
npm install --legacy-peer-deps

0 commit comments

Comments
 (0)