autogen/.github/workflows/single-python-package.yml
afourney 088a50faa5
Remove old autogen_magentic_one package. (#5305)
This PR removes the older `autogen_magentic_one` package, and directs
people to use the new AgentChat implementation.

Hopefully this eases confusion.

---------

Co-authored-by: Jack Gerrits <jack@jackgerrits.com>
Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
2025-01-31 15:14:40 -08:00

45 lines
1.1 KiB
YAML

name: Deploy single package
on:
workflow_dispatch:
inputs:
package:
description: 'Select the package to deploy'
required: true
type: choice
options:
- autogen-agentchat
- autogen-core
- autogen-ext
- agbench
- autogen-studio
- magentic-one-cli
ref:
description: 'Tag to deploy'
required: true
jobs:
deploy-package:
environment:
name: package
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.ref }}
# Require ref to be a tag
- run: git show-ref --verify refs/tags/${{ github.event.inputs.ref }}
- uses: astral-sh/setup-uv@v5
with:
enable-cache: true
version: "0.5.18"
- run: uv build --package ${{ github.event.inputs.package }} --out-dir dist/
working-directory: python
- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: python/dist/