Skip to content

Commit 436c423

Browse files
committed
ci: add cleanup step to deploy action
1 parent 8af2aca commit 436c423

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,3 +89,16 @@ jobs:
8989
with:
9090
cf_zone: ${{ secrets.CLOUDFLARE_ZONE }}
9191
cf_auth: ${{ secrets.CLOUDFLARE_AUTH_KEY }}
92+
93+
cleanup-deployments:
94+
name: Cleanup Deployment History
95+
runs-on: ubuntu-latest
96+
needs: ["deploy"]
97+
98+
steps:
99+
- name: Cleanup deployments
100+
uses: strumwolf/delete-deployment-environment@v3
101+
with:
102+
token: ${{ secrets.GITHUB_TOKEN }}
103+
environment: production
104+
onlyRemoveDeployments: true

0 commit comments

Comments
 (0)