Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 13 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,10 @@ jobs:
[ -z "$pkg_dir" ] && pkg_dir="."

if git diff "$BEFORE_SHA" HEAD --name-only | grep -q "^${pyproject_path}$"; then
# --- CHANGE #2: tolerant version line detection (spaces + quote styles) ---
if git diff "$BEFORE_SHA" HEAD -- "$pyproject_path" | grep -qE '^\+version\s*=\s*["'\'']'; then
local version
version=$(grep -E '^[[:space:]]*version[[:space:]]*=' "$pyproject_path" | head -n1 | sed -E 's/^[[:space:]]*version[[:space:]]*=[[:space:]]*["'\'']([^"'\'']+)["'\''].*/\1/')

# --- CHANGE #3: tighter prerelease heuristic ---
local is_prerelease="false"
if echo "$version" | grep -qE '([.-]?(a|b|rc|dev|pre|preview))[0-9]*'; then
is_prerelease="true"
Expand Down Expand Up @@ -194,21 +192,29 @@ jobs:
- name: Build package
id: build
run: |
uv build
set -euo pipefail
rm -rf "${{ matrix.package.dir }}/dist"
mkdir -p "${{ matrix.package.dir }}/dist"

# Build the package located at matrix.package.dir
# and force output into that package's dist directory.
uv build --out-dir "${{ matrix.package.dir }}/dist" "${{ matrix.package.dir }}"

echo "Built artifacts:"
ls -la dist/
working-directory: ${{ matrix.package.dir }}
ls -la "${{ matrix.package.dir }}/dist"

- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: dist-${{ matrix.package.name }}-${{ matrix.package.version }}
path: ${{ matrix.package.dir }}/dist/
retention-days: 120

- name: Publish to PyPI
id: publish
run: uv publish --token ${{ secrets.PYPI_API_TOKEN }}
working-directory: ${{ matrix.package.dir }}
run: |
set -euo pipefail
uv publish --token "${{ secrets.PYPI_API_TOKEN }}" "${{ matrix.package.dir }}/dist"/*

- name: Create GitHub Release
if: steps.publish.outcome == 'success'
Expand Down
2 changes: 1 addition & 1 deletion packages/jabs-core/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "jabs-core"
version = "0.1.0"
version = "0.1.0a1"
description = "Add your description here"
readme = "README.md"
requires-python = ">=3.10,<3.15"
Expand Down
2 changes: 1 addition & 1 deletion packages/jabs-io/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "jabs-io"
version = "0.1.0"
version = "0.1.0a1"
description = "Add your description here"
readme = "README.md"
requires-python = ">=3.10,<3.15"
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "jabs-behavior-classifier"
version = "0.41.0a0"
version = "0.41.0a1"
description = ""
readme = "README.md"
requires-python = ">=3.10,<3.15"
Expand Down
6 changes: 3 additions & 3 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading