forked from microsoft/autogen
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (41 loc) · 1.1 KB
/
single-python-package.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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
- 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/