> For clean Markdown content of this page, append .md to this URL. For the complete documentation index, see https://buildwithfern.com/learn/llms.txt.

## 在合并时清理 GitHub Actions 预览部署

[GitHub Actions 预览工作流](/learn/zh/docs/preview-publish/preview-changes#automate-with-github-actions) 现在有一个可选的配套 `cleanup-preview.yml` 工作流，可以在 PR 合并后删除拉取请求的预览部署，这样过期的预览就不会留存。

要采用此工作流，请在现有预览工作流旁边添加 `.github/workflows/cleanup-preview.yml`。

阅读文档