diff --git a/.build/build.fsx b/.build/build.fsx index 68766ffd..3ddbab04 100644 --- a/.build/build.fsx +++ b/.build/build.fsx @@ -34,9 +34,6 @@ let isAlpha = (isBeta || branchName = "develop") let mutable donePublish = false let githubApiKey = environVar "BLYTHMEISTER_GITHUB_KEY" -let cloudflareApiKey = environVar "BLYTHMEISTER_CLOUDFLARE_KEY" -let cloudflareEmail = environVar "BLYTHMEISTER_CLOUDFLARE_EMAIL" -let cloudflareZone = environVar "BLYTHMEISTER_CLOUDFLARE_ZONE" let exceptionlessApiKey = environVar "BLYTHMEISTER_EXCEPTIONLESS_KEY" printfn "Running On Branch: %s" branchName @@ -259,20 +256,6 @@ Target "Publish-ReleaseNotes" (fun _ -> printfn "No releases pushed, so skipping release notes" ) -Target "Publish-PurgeCloudflareCache" (fun _ -> - printfn "Purging Cloudflare" - try - let client = new WebClient() - client.Headers.Add("X-Auth-Email", cloudflareEmail) - client.Headers.Add("X-Auth-Key", cloudflareApiKey) - client.Headers.Add("Content-Type", "application/json") - let result = client.UploadString(sprintf "https://api.cloudflare.com/client/v4/zones/%s/purge_cache" cloudflareZone, "POST", "{\"purge_everything\":true}") - client.Dispose() - printfn "Cloudflare Purge response: %s" result - with e -> - failwithf "Cloudflare Purge request failed: %s" e.Message -) - Target "Default" DoNothing "Clean" @@ -283,7 +266,6 @@ Target "Default" DoNothing =?> ("Publish-Artifacts", isAppVeyor && not(isPR)) =?> ("Publish-ReleaseRepo", isAppVeyor && not(isPR)) =?> ("Publish-ReleaseNotes", isAppVeyor && not(isPR) && (isBeta || isStable)) - =?> ("Publish-PurgeCloudflareCache", isAppVeyor && not(isPR)) ==> "Default" RunParameterTargetOrDefault "target" "Default"