Skip to content

Commit 7960531

Browse files
author
Animesh Garg
committed
update workflows to use imagmagick cache when possible
1 parent ea934e1 commit 7960531

3 files changed

Lines changed: 27 additions & 0 deletions

File tree

.github/workflows/axe.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,15 @@ jobs:
4141
"giscus.repo": "${{ github.repository }}",
4242
"baseurl": ""
4343
}
44+
- name: Restore Jekyll image cache 🖼️
45+
uses: actions/cache@v4
46+
with:
47+
path: |
48+
_site/assets/img
49+
.jekyll-cache
50+
key: ${{ runner.os }}-jekyll-img-v1-${{ hashFiles('_config.yml', 'Gemfile.lock', 'assets/img/**') }}
51+
restore-keys: |
52+
${{ runner.os }}-jekyll-img-v1-
4453
- name: Install and Build 🔧
4554
run: |
4655
sudo apt-get update && sudo apt-get install -y imagemagick

.github/workflows/broken-links-site.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,15 @@ jobs:
2929
"giscus.repo": "${{ github.repository }}",
3030
"baseurl": ""
3131
}
32+
- name: Restore Jekyll image cache 🖼️
33+
uses: actions/cache@v4
34+
with:
35+
path: |
36+
_site/assets/img
37+
.jekyll-cache
38+
key: ${{ runner.os }}-jekyll-img-v1-${{ hashFiles('_config.yml', 'Gemfile.lock', 'assets/img/**') }}
39+
restore-keys: |
40+
${{ runner.os }}-jekyll-img-v1-
3241
- name: Install and Build 🔧
3342
run: |
3443
sudo apt-get update && sudo apt-get install -y imagemagick

.github/workflows/deploy.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,15 @@ jobs:
8888
valueFile: "_config.yml"
8989
propertyPath: "giscus.repo"
9090
value: ${{ github.repository }}
91+
- name: Restore Jekyll image cache 🖼️
92+
uses: actions/cache@v4
93+
with:
94+
path: |
95+
_site/assets/img
96+
.jekyll-cache
97+
key: ${{ runner.os }}-jekyll-img-v1-${{ hashFiles('_config.yml', 'Gemfile.lock', 'assets/img/**') }}
98+
restore-keys: |
99+
${{ runner.os }}-jekyll-img-v1-
91100
- name: Install and Build 🔧
92101
run: |
93102
sudo apt-get update && sudo apt-get install -y imagemagick

0 commit comments

Comments
 (0)