From 4a33011ee3f4b1603546009b18b585cbc6b00886 Mon Sep 17 00:00:00 2001 From: Luca Osti Date: Thu, 1 Aug 2024 14:02:48 +0200 Subject: [PATCH 1/6] Update preview.yml --- .github/workflows/preview.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index f76768f925..6e2815cc0a 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -69,18 +69,18 @@ jobs: id: gatsby-cache-folder with: path: .cache - key: ${{ runner.os }}-cache-gatsby-${{ github.sha }} + key: ${{ runner.os }}-cache-gatsby-${{ github.ref }} restore-keys: | - ${{ runner.os }}-cache-gatsby- + ${{ runner.os }}-cache-gatsby-main - name: Gatsby Public Folder uses: actions/cache@v4 id: gatsby-public-folder with: path: public/ - key: ${{ runner.os }}-public-gatsby-${{ github.sha }} + key: ${{ runner.os }}-public-gatsby-${{ github.ref }} restore-keys: | - ${{ runner.os }}-public-gatsby- + ${{ runner.os }}-public-gatsby-main - run: npm install - run: npm run build @@ -135,4 +135,4 @@ jobs: body: | ## Preview Deployment 🚀 Preview this PR: ${{ steps.url_preview.outputs.NETLIFY_PREVIEW_URL }} - 📍 Commit SHA: ${{ github.sha }} \ No newline at end of file + 📍 Commit SHA: ${{ github.sha }} From ce9a94548c7f67e7cf4d664c2f9ca86f81a325b7 Mon Sep 17 00:00:00 2001 From: Luca Osti Date: Thu, 1 Aug 2024 14:03:53 +0200 Subject: [PATCH 2/6] Update deploy-staging.yml --- .github/workflows/deploy-staging.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy-staging.yml b/.github/workflows/deploy-staging.yml index ee6645a559..685d23f4e6 100644 --- a/.github/workflows/deploy-staging.yml +++ b/.github/workflows/deploy-staging.yml @@ -50,18 +50,18 @@ jobs: id: gatsby-cache-folder with: path: .cache - key: ${{ runner.os }}-cache-gatsby-${{ github.sha }} + key: ${{ runner.os }}-cache-gatsby-main restore-keys: | - ${{ runner.os }}-cache-gatsby- + ${{ runner.os }}-cache-gatsby-main - name: Gatsby Public Folder uses: actions/cache@v4 id: gatsby-public-folder with: path: public/ - key: ${{ runner.os }}-public-gatsby-${{ github.sha }} + key: ${{ runner.os }}-cache-gatsby-main restore-keys: | - ${{ runner.os }}-public-gatsby- + ${{ runner.os }}-cache-gatsby-main - run: npm install - run: npm run build From 37b5abaf644ebcbd89c85d85de0c57814ca254e0 Mon Sep 17 00:00:00 2001 From: Luca Osti Date: Thu, 1 Aug 2024 14:04:28 +0200 Subject: [PATCH 3/6] Update deploy-production.yml --- .github/workflows/deploy-production.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy-production.yml b/.github/workflows/deploy-production.yml index b3966adeb1..d7222b6e69 100644 --- a/.github/workflows/deploy-production.yml +++ b/.github/workflows/deploy-production.yml @@ -50,18 +50,18 @@ jobs: id: gatsby-cache-folder with: path: .cache - key: ${{ runner.os }}-cache-gatsby-${{ github.sha }} + key: ${{ runner.os }}-cache-gatsby-main restore-keys: | - ${{ runner.os }}-cache-gatsby- + ${{ runner.os }}-cache-gatsby-main - name: Gatsby Public Folder uses: actions/cache@v4 id: gatsby-public-folder with: path: public/ - key: ${{ runner.os }}-public-gatsby-${{ github.sha }} + key: ${{ runner.os }}-public-gatsby-main restore-keys: | - ${{ runner.os }}-public-gatsby- + ${{ runner.os }}-public-gatsby-main - run: npm install - run: npm run build From 85e3538f08d024604076951d016d28db53d967b9 Mon Sep 17 00:00:00 2001 From: Luca Osti Date: Mon, 5 Aug 2024 08:30:35 +0200 Subject: [PATCH 4/6] Fix cache key for staging --- .github/workflows/deploy-staging.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy-staging.yml b/.github/workflows/deploy-staging.yml index 685d23f4e6..d875524b15 100644 --- a/.github/workflows/deploy-staging.yml +++ b/.github/workflows/deploy-staging.yml @@ -50,7 +50,7 @@ jobs: id: gatsby-cache-folder with: path: .cache - key: ${{ runner.os }}-cache-gatsby-main + key: ${{ runner.os }}-cache-gatsby-${{ github.ref }} restore-keys: | ${{ runner.os }}-cache-gatsby-main @@ -59,7 +59,7 @@ jobs: id: gatsby-public-folder with: path: public/ - key: ${{ runner.os }}-cache-gatsby-main + key: ${{ runner.os }}-cache-gatsby-${{ github.ref }} restore-keys: | ${{ runner.os }}-cache-gatsby-main From e203269e8ed7710802855defdeff79a5efda0173 Mon Sep 17 00:00:00 2001 From: Luca Osti Date: Mon, 5 Aug 2024 08:31:22 +0200 Subject: [PATCH 5/6] Fix cache key for production --- .github/workflows/deploy-production.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy-production.yml b/.github/workflows/deploy-production.yml index d7222b6e69..5c33fa3fe9 100644 --- a/.github/workflows/deploy-production.yml +++ b/.github/workflows/deploy-production.yml @@ -50,7 +50,7 @@ jobs: id: gatsby-cache-folder with: path: .cache - key: ${{ runner.os }}-cache-gatsby-main + key: ${{ runner.os }}-cache-gatsby-${{ github.ref }} restore-keys: | ${{ runner.os }}-cache-gatsby-main @@ -59,7 +59,7 @@ jobs: id: gatsby-public-folder with: path: public/ - key: ${{ runner.os }}-public-gatsby-main + key: ${{ runner.os }}-public-gatsby-${{ github.ref }} restore-keys: | ${{ runner.os }}-public-gatsby-main From 1b80571f2d0d5412f46f171ca8ec997fed28931c Mon Sep 17 00:00:00 2001 From: Luca Osti Date: Mon, 5 Aug 2024 08:57:25 +0200 Subject: [PATCH 6/6] Fix public cache for staging --- .github/workflows/deploy-staging.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy-staging.yml b/.github/workflows/deploy-staging.yml index d875524b15..b0ee94863b 100644 --- a/.github/workflows/deploy-staging.yml +++ b/.github/workflows/deploy-staging.yml @@ -59,9 +59,9 @@ jobs: id: gatsby-public-folder with: path: public/ - key: ${{ runner.os }}-cache-gatsby-${{ github.ref }} + key: ${{ runner.os }}-public-gatsby-${{ github.ref }} restore-keys: | - ${{ runner.os }}-cache-gatsby-main + ${{ runner.os }}-public-gatsby-main - run: npm install - run: npm run build