From 6914fb5a38c5cd3a57eebe1d89285d98f67e3954 Mon Sep 17 00:00:00 2001 From: Malik Al Date: Sat, 2 Dec 2023 16:13:30 +0700 Subject: [PATCH] add purge --- .github/workflows/release.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index ec14b854f..5920c5619 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -100,3 +100,17 @@ jobs: keep_latest: 1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: Purge rule-set-geosite jsdelivr CDN + run: | + cd publish || exit 1 + for file in $(ls); do + curl -i "https://purge.jsdelivr.net/gh/${{ github.repository }}@rule-set-geosite/${file}" + done + + - name: Purge rule-set-geoip jsdelivr CDN + run: | + cd publish || exit 1 + for file in $(ls); do + curl -i "https://purge.jsdelivr.net/gh/${{ github.repository }}@rule-set-geoip/${file}" + done \ No newline at end of file