diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 09e2634..cae62b1 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] @@ -8,9 +10,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 @@ -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