Skip to content

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

chore(py): update release workflow (#2830)

Musthaq Ahamad517777098e74
diff --git a/.github/workflows/py.release.yml b/.github/workflows/py.release.yml
index 22fa186ee..c700d9803 100644
--- a/.github/workflows/py.release.yml
+++ b/.github/workflows/py.release.yml
@@ -1,11 +1,12 @@
name: Release Python Packages
on:
- release:
- types: [published]
+ push:
+ tags:
+ - 'py@*'
workflow_dispatch:
inputs:
skip_tests:
- description: "Skip running tests"
+ description: 'Skip running tests'
required: false
type: boolean
default: false
@@ -13,7 +14,6 @@ on:
jobs:
publish-core:
name: Build and release SDK
- if: github.event_name == 'workflow_dispatch' || startsWith(github.event.release.tag_name, 'py-v')
defaults:
run:
working-directory: ./python
@@ -27,14 +27,14 @@ jobs:
- name: Build Artifacts
run: |
- make env
- make build
+ make env
+ make build
- name: Publish Artifacts
- if: github.event_name == 'release'
+ if: github.event_name == 'push'
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: ./python/dist
user: ${{ secrets.PYPI_USERNAME }}
password: ${{ secrets.PYPI_PASSWORD }}
- skip-existing: true
\ No newline at end of file
+ skip-existing: true