Skip to content

Commit

Permalink
ci: Add pypi build and release github action
Browse files Browse the repository at this point in the history
  • Loading branch information
zakiali committed Aug 24, 2024
1 parent ff25450 commit 80e8f9a
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 1 deletion.
30 changes: 30 additions & 0 deletions .github/workflows/pypi_release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: PYPI Release

on:
push:
branches:
- main
tags:
- 'v*'

jobs:
pypi_release:
runs-on: ubuntu-latest

permissions:
id-token: write

steps:
- uses: actions/checkout@v4

- name: Install UV
run: curl -LsSf https://astral.sh/uv/install.sh | sh

- name: Source Cargo Environment
run: source $HOME/.cargo/env

- name: Build with UV
run: uvx --from build pyproject-build --installer uv

- name: Publish
uses: pypa/gh-action-pypi-publish@release/v1
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[project]
name = "exchange"
name = "ai-exchange"
version = "0.8.0"
description = "a uniform python SDK for message generation with LLMs"
readme = "README.md"
Expand All @@ -14,6 +14,9 @@ dependencies = [
"httpx>=0.27.0",
]

[tool.hatch.build.targets.wheel]
packages = ["src/exchange"]

[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
Expand Down

0 comments on commit 80e8f9a

Please sign in to comment.