From e8dc8f750a8ad5971a27441325369ff9d7129cbe Mon Sep 17 00:00:00 2001 From: Abdelsalam Date: Tue, 7 Apr 2026 20:38:43 +0200 Subject: [PATCH 1/2] fix(ci): run semantic-release as CLI instead of Docker action The Docker-based action runs build_command inside its container where pixi is not available. Switch to running semantic-release via uvx on the runner where setup-pixi installs pixi. Add assets config so pixi.lock is included in the version commit. --- .github/workflows/release.yml | 22 +++++++++------------- pyproject.toml | 1 + 2 files changed, 10 insertions(+), 13 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f6a3648e..a20e05c9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -36,17 +36,13 @@ jobs: with: run-install: false - - name: Semantic Release - id: release - uses: python-semantic-release/python-semantic-release@v10.5.3 - with: - github_token: ${{ steps.app-token.outputs.token }} - git_committer_name: "github-actions" - git_committer_email: "actions@users.noreply.github.com" + - uses: astral-sh/setup-uv@v6 - - name: Publish to GitHub Releases - if: steps.release.outputs.released == 'true' - uses: python-semantic-release/publish-action@v10.5.3 - with: - github_token: ${{ steps.app-token.outputs.token }} - tag: ${{ steps.release.outputs.tag }} + - name: Semantic Release + env: + GH_TOKEN: ${{ steps.app-token.outputs.token }} + run: | + git config user.name "github-actions" + git config user.email "actions@users.noreply.github.com" + uvx --from="python-semantic-release==10.5.3" semantic-release version || true + uvx --from="python-semantic-release==10.5.3" semantic-release publish diff --git a/pyproject.toml b/pyproject.toml index 6d53e3ce..4045da0f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -148,6 +148,7 @@ order-by-type = false [tool.semantic_release] allow_zero_version = true +assets = ["pixi.lock"] build_command = "pixi lock" commit_message = "{version}\n\nAutomatically generated by python-semantic-release" commit_parser = "conventional" From 49e0a0993b824600315aaf7f8a27b18eaa9897d0 Mon Sep 17 00:00:00 2001 From: Abdelsalam Date: Tue, 7 Apr 2026 21:01:57 +0200 Subject: [PATCH 2/2] chore: regenerate pixi.lock after pyproject.toml config change --- pixi.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pixi.lock b/pixi.lock index 84393b1a..23c92e89 100644 --- a/pixi.lock +++ b/pixi.lock @@ -9720,7 +9720,7 @@ packages: - pypi: ./ name: sampleworks version: 0.4.2 - sha256: 309a10e01182d9c211d1731a3d8bcf84d75ba6ecb658d959041074bef9aec7c6 + sha256: 15d4f3834fb7a67d67857100fbbadba502c046c2c8c64c90559e35d789afaa40 requires_dist: - atomworks[ml]==2.1.1 - python-dotenv