Skip to content

Commit 8b8245e

Browse files
authored
Merge pull request #7179 from layer5io/leecalcote/ci/cache-build
Chore: Cache Gatsby .cache and public folders
2 parents 46cdd02 + 509ba57 commit 8b8245e

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)