diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 34a23b6..f1b8470 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,12 +1,11 @@ name: Publish to PyPI on: - release: - types: [published] - workflow_dispatch: push: branches: - main + tags: + - 'v*' pull_request: branches: - main @@ -98,7 +97,7 @@ jobs: cp dist/*/*.whl final_dist/ - name: Publish to PyPI - if: github.event_name == 'release' + if: startsWith(github.ref, 'refs/tags/v') env: TWINE_USERNAME: __token__ TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} diff --git a/pyproject.toml b/pyproject.toml index c39fcb6..950a01b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "webview_python" -version = "1.1.2" +version = "1.1.3" description = "Python bindings for the webview library, which completely follow deno_webview design and principles" readme = "README.md" license = { file = "LICENSE" }