Skip to content

Commit 7044805

Browse files
Skip PyPI publishing for GitHub pre-releases (#2800)
Co-authored-by: openhands <openhands@all-hands.dev>
1 parent dcc70cc commit 7044805

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/pypi-release.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ on:
1010

1111
jobs:
1212
publish:
13+
# Skip PyPI publishing for pre-releases (e.g., release candidates).
14+
# Pre-releases can still be created on GitHub for testing without
15+
# pushing packages to PyPI. Manual workflow_dispatch always runs.
16+
if: >
17+
github.event_name == 'workflow_dispatch' ||
18+
!github.event.release.prerelease
1319
runs-on: ubuntu-24.04
1420
outputs:
1521
version: ${{ steps.extract_version.outputs.version }}

0 commit comments

Comments
 (0)