Deploy single package #14
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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-magentic-one | |
- autogen-studio | |
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@v3 | |
with: | |
enable-cache: true | |
version: "0.4.26" | |
- 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/ |