diff --git a/.github/workflows/deploy-production.yml b/.github/workflows/deploy-production.yml index b3966adeb1..5c33fa3fe9 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-${{ 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 diff --git a/.github/workflows/deploy-staging.yml b/.github/workflows/deploy-staging.yml index ee6645a559..b0ee94863b 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-${{ 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 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 }}