Skip to content

Commit

Permalink
Add notifications to publish pypa workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
gizmo385 committed Dec 10, 2024
1 parent ae80335 commit d4586bd
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
name: pypi
url: https://pypi.org/p/lazy-github
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
id-token: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
Expand All @@ -20,4 +20,15 @@ jobs:
run: uvx hatch build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
notify:
name: Notify when this workflow completes (regardless of success or failure)
if: ${{ always() }}
needs:
- pypi-publish
runs-on: ubuntu-latest
steps:
- uses: nobrayner/discord-webhook@v1
with:
github-token: ${{ secrets.github_token }}
discord-webhook: ${{ secrets.DISCORD_WEBHOOK }}

0 comments on commit d4586bd

Please sign in to comment.