Skip to content

Commit

Permalink
Cleanup old deployments
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardobranco777 committed Jun 11, 2024
1 parent af5628d commit 8b54208
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/page.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,16 @@ concurrency:
cancel-in-progress: false

jobs:
cleanup:
runs-on: ubuntu-latest
permissions: write-all
steps:
- name: Delete deployment
uses: strumwolf/delete-deployment-environment@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
environment: github-pages
onlyRemoveDeployments: true
deploy:
environment:
name: github-pages
Expand Down Expand Up @@ -75,3 +85,4 @@ jobs:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
needs: cleanup

0 comments on commit 8b54208

Please sign in to comment.