add package workflow for 0.2 (#3892)

* add package workflow for 0.2

* Update workflow
This commit is contained in:
Eric Zhu
2024-10-22 21:57:21 -07:00
committed by GitHub
parent a9d292780b
commit 15fc18ccbf

30
.github/python-package-0.2.yml vendored Normal file
View File

@@ -0,0 +1,30 @@
name: AgentChat 0.2 Pypi Package
on:
push:
tags:
- "0.2.*"
workflow_dispatch:
permissions: {}
jobs:
deploy:
strategy:
matrix:
os: ["ubuntu-latest"]
python-version: [3.10]
runs-on: ${{ matrix.os }}
environment:
name: package
url: https://pypi.org/p/autogen-agentchat
permissions:
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build
shell: pwsh
run: |
pip install twine
python setup.py sdist bdist_wheel
- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@release/v1