Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
name: Publish to PyPI

on:
push:
pull_request:
branches:
- main
types: [closed]
tags:
- 'v*' # Trigger on version tags like v0.3.0, v1.0.0, etc.

workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand Down Expand Up @@ -42,6 +45,7 @@ jobs:
path: dist/

publish-to-pypi:
if: github.event.pull_request.merged == true
name: Publish to PyPI
needs:
- build
Expand All @@ -63,6 +67,7 @@ jobs:
uses: pypa/gh-action-pypi-publish@release/v1

github-release:
if: github.event.pull_request.merged == true
name: Create GitHub Release
needs:
- publish-to-pypi
Expand Down
Loading