From e46382bd3294ddd94063c37c69c2a9885b30ad83 Mon Sep 17 00:00:00 2001 From: phi Date: Sat, 7 Sep 2024 12:28:25 +0900 Subject: [PATCH] chore: use toml-cli, uv build --- .github/workflows/publish.yaml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 09e2634..99dbd8c 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -1,6 +1,8 @@ name: Publish Package on: + push: + branches: [dev] release: types: [created] @@ -26,9 +28,9 @@ jobs: run: | VERSION=$(uvx dunamai from any --no-metadata --style pep440) echo $VERSION - sed -i'' -E "s/version = \"0.0.0\"/version = \"$VERSION\"/g" pyproject.toml - uvx --from build pyproject-build --installer uv + uvx --from=toml-cli toml set --toml-path=pyproject.toml project.version $VERSION + uv build - - name: Publish package distributions to PyPI - id: publish-pypi - uses: pypa/gh-action-pypi-publish@release/v1 \ No newline at end of file + # - name: Publish package distributions to PyPI + # id: publish-pypi + # uses: pypa/gh-action-pypi-publish@release/v1 \ No newline at end of file