Skip to content

Commit b5051c3

Browse files
committed
fix: Update OG image cache paths in .gitignore and workflow
1 parent 2aaf652 commit b5051c3

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ jobs:
5454
id: og-cache
5555
with:
5656
path: |
57-
content/**/*-og.jpg
58-
static/images/og-image.jpg
57+
content/**/*-og-*.jpg
58+
static/images/og-image-*.jpg
5959
tmp/og-cache-manifest.json
6060
key: ${{ runner.os }}-og-images-${{ hashFiles('**/content/**/index.md', '**/content/**/_index.md', 'assets/og-template/template.html', 'assets/images/ONM-logo.png') }}
6161
restore-keys: |
@@ -84,7 +84,7 @@ jobs:
8484
sed -i "s|baseURL = .*|baseURL = \"$BASE_URL\"|" hugo.toml
8585
echo "hugo.toml after modification:"
8686
cat hugo.toml
87-
87+
8888
- name: Build Hugo Site
8989
run: |
9090
echo "Starting Hugo site build..."

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@ yarn.lock
2222
/tmp/
2323

2424
# Ignore generated OG images and cache files
25-
content/**/*-og.jpg
26-
static/images/og-image.jpg
25+
content/**/*-og-*.jpg
26+
static/images/og-image-*.jpg
2727
tmp/og-cache-manifest.json

0 commit comments

Comments
 (0)