GitHub logo
Cloudflare Cache Purge logo

Workflow template

Refresh documentation when a stable release ships

Evict a configured documentation path when a GitHub release is published. Prereleases leave the docs cache intact.

How it works

Refresh documentation when a stable release ships

1 Trigger · 1 Action
GitHub1 · Trigger

Release

Emit an event when GitHub delivers the release webhook.

Cloudflare Cache Purge2 · Action

Refresh the documentation path

Remove cached URLs beginning with the selected hostname and path, such as docs.example.com/guide/.

Before activation

Set up your workflow

  1. Choose the release repository

    Connect GitHub and select the repository that publishes your documentation. The trigger watches published releases and skips prereleases.

  2. Set the documentation prefix

    Connect the Cloudflare zone and enter a hostname followed by a path, such as docs.example.com/guides/. A trailing slash limits matches to that directory.

  3. Verify release timing

    Publish the updated docs to the origin before creating a stable release. Warm a test page under the prefix and an unrelated page, then check that only the matching page needs a fresh fetch.

Explore connected apps