Skip to content

Commit 9af73c1

Browse files
committed
set up pypi release workflow
1 parent bcf7af8 commit 9af73c1

File tree

3 files changed

+48
-1
lines changed

3 files changed

+48
-1
lines changed

.github/workflows/publish.yml

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Publish Python 🐍 distribution 📦 to PyPI
2+
3+
on:
4+
push:
5+
tags:
6+
- '*'
7+
8+
jobs:
9+
build:
10+
name: Build distribution 📦
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
- name: Set up Python
16+
uses: actions/setup-python@v5
17+
with:
18+
python-version: "3.x"
19+
- name: Install pypa/build
20+
run: python3 -m pip install build --user
21+
- name: Build a binary wheel and a source tarball
22+
run: python3 -m build
23+
- name: Store the distribution packages
24+
uses: actions/upload-artifact@v4
25+
with:
26+
name: python-package-distributions
27+
path: dist/
28+
29+
publish-to-pypi:
30+
name: Publish Python 🐍 distribution 📦 to PyPI
31+
if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes
32+
needs: build
33+
runs-on: ubuntu-latest
34+
permissions:
35+
id-token: write # Required for trusted publishing
36+
steps:
37+
- name: Download all the dists
38+
uses: actions/download-artifact@v4
39+
with:
40+
name: python-package-distributions
41+
path: dist/
42+
- name: Publish distribution 📦 to PyPI
43+
uses: pypa/gh-action-pypi-publish@release/v1

MANIFEST.in

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
include requirements.txt
2+
include README.md

setup.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@
77

88
setup(
99
name='litemultiagent',
10-
version='0.1.0',
10+
version='0.1.1',
1111
packages=find_packages(),
12+
long_description=open('README.md').read(),
13+
long_description_content_type='text/markdown',
1214
include_package_data=True,
1315
author='Danqing Zhang',
1416
author_email='[email protected]',

0 commit comments

Comments
 (0)