Skip to content

Commit

Permalink
Update github-pages.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
groveld authored Sep 23, 2024
1 parent e4f8ae5 commit 40ef29e
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/github-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,22 @@ jobs:
- name: Upload artifact
uses: actions/upload-pages-artifact@v3

# Cleanup job
cleanup:
needs: build
permissions: write-all
runs-on: ubuntu-latest
steps:
- name: Delete deployment
uses: strumwolf/delete-deployment-environment@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
environment: github-pages
onlyRemoveDeployments: true

# Deployment job
deploy:
needs: build
needs: cleanup
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
Expand Down

0 comments on commit 40ef29e

Please sign in to comment.