Remove jsDelivr CDN cache purge step

The step to purge jsDelivr CDN cache for the assets branch has been removed from the GitHub Actions workflow. This change simplifies the workflow by eliminating unnecessary cache management.
This commit is contained in:
xixu-me committed 2025-06-10 15:26:21 +08:00
1 parent 0cbfb9f538
commit 063dfaa1aa
1 file changed
-22
-22
View File
@@ -209,28 +209,6 @@ jobs:
git push origin assets --force
fi
- name: Purge jsDelivr CDN cache
run: |
echo "Purging jsDelivr CDN cache for assets branch..."
# Change to directory with PNG files
cd favicons
# Count files for progress tracking
total_files=$(find . -name "*.png" | wc -l)
echo "Purging cache for $total_files files"
count=0
for file in $(find . -name "*.png" -type f -printf "%f\n"); do
count=$((count + 1))
if [ $((count % 100)) -eq 0 ]; then
echo "Progress: Purged $count/$total_files files"
fi
curl -s -o /dev/null -w "%{http_code}" "https://purge.jsdelivr.net/gh/${{ github.repository }}@assets/${file}"
done
echo "jsDelivr CDN cache purge completed for $count files"
- name: Install tzst
run: |
echo "Installing tzst..."