From 59de638cab0ebed0c567576b705190e8fe59259f Mon Sep 17 00:00:00 2001 From: phi Date: Sat, 7 Sep 2024 12:30:23 +0900 Subject: [PATCH] chore: use toml-cli, uv build --- .github/workflows/publish.yaml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index cae62b1..d996873 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -1,8 +1,6 @@ name: Publish Package on: - push: - branches: [dev] release: types: [created] @@ -10,9 +8,9 @@ jobs: publish: runs-on: ubuntu-latest name: "Publish library" - # environment: publish - # permissions: - # id-token: write + environment: publish + permissions: + id-token: write steps: - name: Check out @@ -31,6 +29,6 @@ jobs: 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