Skip to content

Commit 93af249

Browse files
committed
Add workflow for package releases
1 parent 33f5f13 commit 93af249

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Deploy single package
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
package:
7+
description: 'Select the package to deploy'
8+
required: true
9+
type: choice
10+
options:
11+
- autogen-agentchat
12+
- autogen-core
13+
- autogen-ext
14+
- agbench
15+
- autogen-magentic-one
16+
- autogen-studio
17+
ref:
18+
description: 'Tag to deploy'
19+
required: true
20+
21+
jobs:
22+
deploy-package:
23+
environment:
24+
name: package
25+
runs-on: ubuntu-latest
26+
steps:
27+
- name: Checkout
28+
uses: actions/checkout@v4
29+
with:
30+
ref: ${{ github.event.inputs.ref }}
31+
# Require ref to be a tag
32+
- run: git show-ref --verify refs/tags/${{ github.event.inputs.ref }}
33+
- run: curl -LsSf https://astral.sh/uv/install.sh | sh
34+
- run: uv build --package ${{ github.event.inputs.package }}
35+
working-directory: python
36+
- name: Publish package to PyPI
37+
uses: pypa/gh-action-pypi-publish@release/v1
38+
with:
39+
packages-dir: python/packages/${{ github.event.inputs.package }}/dist/

0 commit comments

Comments
 (0)