From 592067c9c1d3bbd4603ff0fdc2d64c2ce3a0b73c Mon Sep 17 00:00:00 2001 From: Dani Palma Date: Thu, 12 Dec 2024 20:15:51 -0300 Subject: [PATCH 1/3] Cache gatsby static files --- .github/workflows/deploy-prod.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/deploy-prod.yml b/.github/workflows/deploy-prod.yml index a6c59cfa..abc272d4 100644 --- a/.github/workflows/deploy-prod.yml +++ b/.github/workflows/deploy-prod.yml @@ -34,6 +34,16 @@ jobs: key: ${{ runner.os }}-gatsby-build-prod-${{ github.run_id }} restore-keys: | ${{ runner.os }}-gatsby-build-prod- + - name: Cache Gatsby files + id: cache-gatsby-static-files + uses: actions/cache@v3 + with: + path: | + .cache + public/static + key: ${{ runner.os }}-gatsby-static-files-${{ hashFiles('**/package-lock.json', '**/yarn.lock') }} + restore-keys: | + ${{ runner.os }}-gatsby-static-files- - run: yarn install - name: Run ESLint run: yarn lint From 0d12a4c60e499430d8ab339cea9fd509e858b800 Mon Sep 17 00:00:00 2001 From: Dani Palma Date: Thu, 12 Dec 2024 20:18:01 -0300 Subject: [PATCH 2/3] Cache gatsby static files --- .github/workflows/deploy-preview.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/deploy-preview.yml b/.github/workflows/deploy-preview.yml index b92a8dc2..0100209b 100644 --- a/.github/workflows/deploy-preview.yml +++ b/.github/workflows/deploy-preview.yml @@ -46,6 +46,16 @@ jobs: key: ${{ runner.os }}-gatsby-build-preview-${{github.head_ref}}-${{ github.run_id }} restore-keys: | ${{ runner.os }}-gatsby-build-preview-${{github.head_ref}}- + - name: Cache Gatsby files + id: cache-gatsby-static-files + uses: actions/cache@v3 + with: + path: | + .cache + public/static + key: ${{ runner.os }}-gatsby-static-files-${{ hashFiles('**/package-lock.json', '**/yarn.lock') }} + restore-keys: | + ${{ runner.os }}-gatsby-static-files- - run: yarn install - name: Run ESLint run: yarn lint From 2eb1598367345596d52b9e862a6ae8d2ced142d4 Mon Sep 17 00:00:00 2001 From: Dani Palma Date: Fri, 13 Dec 2024 08:21:31 -0300 Subject: [PATCH 3/3] test cache --- test | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 test diff --git a/test b/test new file mode 100644 index 00000000..e69de29b