Skip to content

Commit 3b6eef6

Browse files
committed
feat: workflow that publishes to pypi
1 parent 63a54a0 commit 3b6eef6

2 files changed

Lines changed: 44 additions & 0 deletions

File tree

.github/workflows/publish.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Publish to PyPI
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
8+
jobs:
9+
build-and-publish:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
14+
- name: Set up Python
15+
uses: actions/setup-python@v5
16+
with:
17+
python-version: '3.11'
18+
19+
- name: Install build tools
20+
run: |
21+
pip install build twine
22+
23+
- name: Build package
24+
run: python -m build
25+
26+
- name: Upload to PyPI
27+
env:
28+
TWINE_USERNAME: __token__
29+
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
30+
run: twine upload dist/*

pyproject.toml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
[project]
2+
name = "genstack"
3+
version = "0.1.0"
4+
description = "Universal AI SDK from Genstack"
5+
authors = [{name="Shrey Kumar", email="shreyk.dev@gmail.com"}]
6+
readme = "README.md"
7+
license = {text = "MIT"}
8+
dependencies = ["httpx"]
9+
10+
[build-system]
11+
12+
requires = ["hatchling"]
13+
build-backend = "hatchling.build"
14+

0 commit comments

Comments
 (0)