Skip to content

Commit a8cf7f3

Browse files
committed
chore(ci): use just commands in release workflow
Add update-version, build, and publish commands to justfile and update release.yml to use them instead of direct uv calls.
1 parent f8b4bc5 commit a8cf7f3

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@ jobs:
3030

3131
- name: Update version in __init__.py
3232
if: ${{ steps.release.outputs.release_created }}
33-
run: nix develop --command uv run scripts/update_version.py
33+
run: nix develop --command just update-version
3434

3535
- name: Build and publish package
3636
if: ${{ steps.release.outputs.release_created }}
3737
env:
3838
UV_PUBLISH_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
3939
run: |
40-
nix develop --command uv build
41-
nix develop --command uv publish
40+
nix develop --command just build
41+
nix develop --command just publish

justfile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,15 @@ test-examples:
2525
# Run type checking
2626
mypy:
2727
uv run mypy stackone_ai
28+
29+
# Update version in __init__.py
30+
update-version:
31+
uv run scripts/update_version.py
32+
33+
# Build package
34+
build:
35+
uv build
36+
37+
# Publish package to PyPI
38+
publish:
39+
uv publish

0 commit comments

Comments
 (0)