File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : Release
22
3- # Disabled for now - manual PyPI releases only
4- # on:
5- # push:
6- # tags:
7- # - 'v*'
8-
93on :
10- workflow_dispatch :
4+ push :
5+ tags :
6+ - ' v*'
7+
8+ permissions :
9+ contents : write
1110
1211jobs :
1312 release :
3837
3938 - name : Publish to PyPI
4039 env :
41- TWINE_USERNAME : __token__
42- TWINE_PASSWORD : ${{ secrets.PYPI_API_TOKEN }}
40+ UV_PUBLISH_TOKEN : ${{ secrets.PYPI_API_TOKEN }}
4341 run : |
44- uv run python -m pip install twine
45- uv run twine upload dist/*
42+ uv publish
4643
4744 - name : Create GitHub Release
4845 uses : softprops/action-gh-release@v2
Original file line number Diff line number Diff line change 11[project ]
22name = " langstruct"
3- version = " 0.1.1 "
3+ version = " 0.1.2 "
44description = " LLM-powered structured information extraction using DSPy optimization"
55readme = " README.md"
66license = " MIT"
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ set -e
3+
4+ # Helper script for releasing a new version
5+ # Usage: ./scripts/release.sh [patch|minor|major]
6+
7+ BUMP_TYPE=${1:- patch}
8+
9+ echo " 🚀 Starting release process..."
10+ echo " "
11+
12+ # 1. Bump version
13+ echo " 📦 Bumping version ($BUMP_TYPE )..."
14+ uv version --bump $BUMP_TYPE
15+
16+ # Get new version
17+ VERSION=$( grep " ^version" pyproject.toml | cut -d' "' -f2)
18+ echo " ✅ New version: v$VERSION "
19+ echo " "
20+
21+ # 2. Commit version bump
22+ echo " 💾 Committing version bump..."
23+ git add pyproject.toml
24+ git commit -m " Bump version to v$VERSION "
25+ echo " "
26+
27+ # 3. Create and push tag
28+ echo " 🏷️ Creating tag v$VERSION ..."
29+ git tag -a " v$VERSION " -m " Release v$VERSION "
30+ echo " "
31+
32+ # 4. Push everything
33+ echo " ⬆️ Pushing to GitHub..."
34+ git push origin main
35+ git push origin " v$VERSION "
36+ echo " "
37+
38+ echo " ✨ Done! Release v$VERSION is on its way."
39+ echo " "
40+ echo " GitHub Actions will now:"
41+ echo " - Run tests"
42+ echo " - Build the package"
43+ echo " - Publish to PyPI"
44+ echo " - Create a GitHub release"
45+ echo " "
46+ echo " Check progress at: https://github.com/langstruct-ai/langstruct/actions"
You can’t perform that action at this time.
0 commit comments