# Refresh documentation when a stable release ships

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

[Use template](https://dashboard.fasthook.io/workflow/new?templateKey=github-releases-to-cloudflare-cache&templateName=Refresh+documentation+when+a+stable+release+ships)

**Required accounts**

- GitHub
- Cloudflare Cache Purge

## Refresh documentation when a stable release ships

### 1. Trigger · Release

**GitHub**. Emit an event when GitHub delivers the release webhook.

### 2. Action · Refresh the documentation path

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

## 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.

## Related integrations

- [GitHub integrations](https://www.fasthook.io/apps/github/integrations)
- [Cloudflare Cache Purge integrations](https://www.fasthook.io/apps/cloudflare-cache-purge/integrations)
