Skip to content

Commit

Permalink
Update pages-deploy.yml to include cache clearing capabilities before…
Browse files Browse the repository at this point in the history
… a new deployment
  • Loading branch information
olcruzgonzalez authored May 12, 2024
1 parent 234db65 commit e3603c4
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .github/workflows/pages-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"
Expand Down

0 comments on commit e3603c4

Please sign in to comment.