We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 601e430 commit 0659415Copy full SHA for 0659415
.github/workflows/build.yml
@@ -147,4 +147,13 @@ jobs:
147
r2-bucket: spore-modapi-launcherkit
148
source-dir: artifact
149
destination-dir: ./
150
-
+ - name: Purge Cloudflare Cache
151
+ env:
152
+ CF_ZONE_ID: ${{ secrets.CF_ZONE_ID }}
153
+ CF_PURGECACHE_TOKEN: ${{ secrets.CF_PURGECACHE_TOKEN }}
154
+ run: |
155
+ Invoke-WebRequest @{
156
+ Uri = "https://api.cloudflare.com/client/v4/zones/$env:CF_ZONE_ID/purge_cache"
157
+ Headers = @{Authorization="Bearer $env:CF_PURGECACHE_TOKEN"}
158
+ Body = '{"hosts":["update.launcherkit.sporecommunity.com"]}'
159
+ }
0 commit comments