Skip to content

Commit e0cde44

Browse files
committed
feat(py-sdk): release 0.0.1
1 parent fd4454a commit e0cde44

File tree

3 files changed

+24
-6
lines changed

3 files changed

+24
-6
lines changed

.github/workflows/client-release-py.yaml

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
name: Python Client Release
22

33
on:
4-
release:
5-
types: [published]
4+
push:
5+
tags:
6+
- 'sdk-py/v*.*.*'
67
workflow_dispatch:
78

89
permissions:
9-
contents: read
10-
id-token: write
10+
contents: write
1111

1212
jobs:
1313
publish:
@@ -37,3 +37,21 @@ jobs:
3737

3838
- name: Publish to PyPI
3939
run: uv publish
40+
41+
- name: Extract version from tag
42+
id: version
43+
run: |
44+
TAG_NAME=${GITHUB_REF#refs/tags/sdk-py/v}
45+
echo "version=$TAG_NAME" >> $GITHUB_OUTPUT
46+
47+
# TODO: add changelog generation
48+
- name: Generate Changelog
49+
run: |
50+
echo "# Python SDK ${{ steps.version.outputs.version }}" > ${{ github.workspace }}-CHANGELOG.txt
51+
echo "" >> ${{ github.workspace }}-CHANGELOG.txt
52+
echo "Published to https://pypi.org/project/acontext/${{ steps.version.outputs.version }}/" >> ${{ github.workspace }}-CHANGELOG.txt
53+
54+
- name: Create Release
55+
uses: softprops/action-gh-release@v1
56+
with:
57+
body_path: ${{ github.workspace }}-CHANGELOG.txt

src/client/acontext-py/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "acontext"
3-
version = "0.0.1.dev7"
3+
version = "0.0.1"
44
description = "Python SDK for the Acontext API"
55
readme = "README.md"
66
requires-python = ">=3.10"

src/client/acontext-py/uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)