We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 601e430 commit d927817Copy full SHA for d927817
.github/workflows/build.yml
@@ -147,4 +147,15 @@ 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
+ $params = @{
156
+ Method = 'POST'
157
+ Uri = "https://api.cloudflare.com/client/v4/zones/$env:CF_ZONE_ID/purge_cache"
158
+ Headers = @{Authorization="Bearer $env:CF_PURGECACHE_TOKEN"}
159
+ Body = '{"hosts":["update.launcherkit.sporecommunity.com"]}'
160
+ }
161
+ Invoke-WebRequest @params
0 commit comments