Skip to content

Commit 5625ad4

Browse files
committed
fix old thumb removal
1 parent 024a1b4 commit 5625ad4

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
- name: Generate thumbnails
5454
if: steps.check_changes.outputs.changes_detected == 'true'
5555
run: |
56-
rm assets/images/thumbs/* # Remove outdated thumbnails to ensure newly generated ones reflect the latest full-size images
56+
rm assets/images/thumbs/*.jpg
5757
for img in assets/images/fulls/*.jpg; do
5858
filename=$(basename "$img")
5959
magick "$img" -resize "500x" "assets/images/thumbs/$filename"
@@ -63,6 +63,7 @@ jobs:
6363
id: generate-list
6464
if: steps.check_changes.outputs.changes_detected == 'true'
6565
run: |
66+
rm archive/README.md
6667
{
6768
echo "[//]: # (This file is managed by the update_image_archive_list.yml GitHub Action. Changes will be overwritten.)"
6869
echo "# Image Archive Gallery"
@@ -72,7 +73,8 @@ jobs:
7273
for img in $(ls assets/images/fulls); do
7374
thumb="https://efpb.org/assets/images/thumbs/$img"
7475
full="https://efpb.org/assets/images/fulls/$img"
75-
echo "- [![$img]($thumb)]($full)"
76+
echo "[![$img]($thumb)]($full)"
77+
echo ""
7678
done
7779
echo ""
7880
echo "Return to the [Main Gallery](https://efpb.org)"

0 commit comments

Comments
 (0)