Skip to content

Commit 2ab064b

Browse files
committed
Bump version to v0.1.2
1 parent 17c5cb3 commit 2ab064b

4 files changed

Lines changed: 1749 additions & 1706 deletions

File tree

.github/workflows/release.yml

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

3-
# Disabled for now - manual PyPI releases only
4-
# on:
5-
# push:
6-
# tags:
7-
# - 'v*'
8-
93
on:
10-
workflow_dispatch:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
permissions:
9+
contents: write
1110

1211
jobs:
1312
release:
@@ -38,11 +37,9 @@ jobs:
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

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "langstruct"
3-
version = "0.1.1"
3+
version = "0.1.2"
44
description = "LLM-powered structured information extraction using DSPy optimization"
55
readme = "README.md"
66
license = "MIT"

scripts/release.sh

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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"

0 commit comments

Comments
 (0)