mirror of
https://github.com/MervinPraison/PraisonAI.git
synced 2026-11-10 17:29:39 -10:00
Add workflow_dispatch pypi-release.yml for patch/minor/major releases of praisonaiagents and praisonai with environment approval, uv publish, and bump_and_release integration. Disable legacy python-publish.yml release trigger to avoid duplicate wrapper publishes. Dedupe merge-conflict Claude triggers on main push bursts. Co-authored-by: Cursor <[email protected]>
46 lines
1.4 KiB
YAML
46 lines
1.4 KiB
YAML
# This workflow will upload a Python Package using Twine when a release is created
|
|
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries
|
|
|
|
# This workflow uses actions that are not certified by GitHub.
|
|
# They are provided by a third-party and are governed by
|
|
# separate terms of service, privacy policy, and support
|
|
# documentation.
|
|
|
|
name: Upload Python Package
|
|
|
|
# Superseded by pypi-release.yml (manual workflow_dispatch with uv publish).
|
|
# Kept as workflow_dispatch-only fallback; release trigger removed to avoid
|
|
# duplicate PyPI publish when bump_and_release creates a GitHub release.
|
|
on:
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
deploy:
|
|
if: false
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
persist-credentials: false
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: '3.x'
|
|
- name: Install dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install build
|
|
- name: Build package
|
|
run: python -m build src/praisonai
|
|
- name: Publish package
|
|
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
|
|
with:
|
|
user: __token__
|
|
password: ${{ secrets.PYPI_API_TOKEN }}
|
|
packages_dir: src/praisonai/dist/
|