From e3603c4c1559889f8e061dd5120f041c41ad0507 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oscar=20L=2E=20Cruz=20Gonz=C3=A1lez?= <122031418+olcruzgonzalez@users.noreply.github.com> Date: Sun, 12 May 2024 14:22:46 +0200 Subject: [PATCH] Update pages-deploy.yml to include cache clearing capabilities before a new deployment --- .github/workflows/pages-deploy.yml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pages-deploy.yml b/.github/workflows/pages-deploy.yml index cc28f99..9e1d5e5 100644 --- a/.github/workflows/pages-deploy.yml +++ b/.github/workflows/pages-deploy.yml @@ -43,7 +43,23 @@ jobs: uses: ruby/setup-ruby@v1 with: ruby-version: 3.3 - bundler-cache: true + #---------------------------------- + # Disable automatic Bundler caching + bundler-cache: false + + - name: Cache gems + uses: actions/cache@v2 + with: + path: vendor/bundle + key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}-${{ github.run_id }} + restore-keys: | + ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }} + + - name: Install Dependencies + run: | + bundle config path vendor/bundle + bundle install --jobs 4 --retry 3 + #---------------------------------- - name: Build site run: bundle exec jekyll b -d "_site${{ steps.pages.outputs.base_path }}"