From f07506190fb2e40e892f3dcddb6dd823f4803a5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9mie=20Gince?= <50332514+JeremieGince@users.noreply.github.com> Date: Sun, 2 Nov 2025 10:11:52 -0500 Subject: [PATCH 1/2] Update build workflow to add uv.lock and reorder steps The workflow now runs 'uv lock' after bumping the version and adds 'uv.lock' to the commit. The PyPI publish step was moved to the end of the job for better organization. --- .github/workflows/build_dist.yml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build_dist.yml b/.github/workflows/build_dist.yml index 33a0b80..c4faa9e 100644 --- a/.github/workflows/build_dist.yml +++ b/.github/workflows/build_dist.yml @@ -49,6 +49,7 @@ jobs: - name: Bump package version in pyproject.toml run: | uv version ${{steps.version.outputs.new_tag}} + uv lock - name: Build dist run: | @@ -60,6 +61,7 @@ jobs: git config --local user.email "action@github.com" git config --local user.name "GitHub Action" git add pyproject.toml + git add uv.lock git diff-index --quiet HEAD || git commit -m "Updating version of pyproject.toml" - name: Push the new pyproject.toml @@ -84,13 +86,6 @@ jobs: tag_name: ${{ steps.tag.outputs.new_tag }} generate_release_notes: true - - name: Publish distribution to PyPI - if: false # TODO: remove this line to Publish distribution to PyPI - uses: pypa/gh-action-pypi-publish@release/v1 - with: - skip_existing: true - verbose: true - - name: Merge 'main' branch -> 'dev' branch uses: devmasx/merge-branch@master with: @@ -100,3 +95,10 @@ jobs: message: "Automatic merge from 'main' into 'dev' [skip actions]" label_name: "gh-actions" github_token: ${{ secrets.GITHUB_TOKEN }} + + - name: Publish distribution to PyPI + if: false # TODO: remove this line to Publish distribution to PyPI + uses: pypa/gh-action-pypi-publish@release/v1 + with: + skip_existing: true + verbose: true From b79a09d3851387b49b2f56bebece2776e5cb74d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9mie=20Gince?= <50332514+JeremieGince@users.noreply.github.com> Date: Sun, 2 Nov 2025 10:13:24 -0500 Subject: [PATCH 2/2] Update uv.lock --- uv.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uv.lock b/uv.lock index 00a158e..50ff939 100644 --- a/uv.lock +++ b/uv.lock @@ -1341,7 +1341,7 @@ wheels = [ [[package]] name = "python-template" -version = "0.0.1" +version = "0.0.2" source = { editable = "." } dependencies = [ { name = "importlib-metadata" },