Skip to content

Commit

Permalink
Add workflow for package releases
Browse files Browse the repository at this point in the history
  • Loading branch information
jackgerrits committed Oct 9, 2024
1 parent 33f5f13 commit 93af249
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/single-python-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
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
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 }}
- run: curl -LsSf https://astral.sh/uv/install.sh | sh
- run: uv build --package ${{ github.event.inputs.package }}
working-directory: python
- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: python/packages/${{ github.event.inputs.package }}/dist/

0 comments on commit 93af249

Please sign in to comment.