Skip to content

Commit 9323e67

Browse files
committed
Enhance publish workflow by adding push trigger for main branch and cleaning up whitespace in publish.yml
1 parent 4031d58 commit 9323e67

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/publish.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1-
name: Publish Python Client to PyPI
1+
name: Publish to PyPI
22

33
on:
44
workflow_dispatch:
5+
push:
6+
branches:
7+
- main
58

69
jobs:
710
publish:
@@ -40,7 +43,7 @@ jobs:
4043
run: |
4144
VERSION="${{ steps.current-version.outputs.current_version }}"
4245
PACKAGE_NAME="robosystems-client"
43-
46+
4447
# Check if version exists on PyPI
4548
if curl -s "https://pypi.org/pypi/${PACKAGE_NAME}/${VERSION}/json" | grep -q "\"version\""; then
4649
echo "❌ Version ${VERSION} already exists on PyPI"

0 commit comments

Comments
 (0)