diff --git a/.github/workflows/publish-to-pypi.yml b/.github/workflows/publish-to-pypi.yml new file mode 100644 index 0000000..4389d25 --- /dev/null +++ b/.github/workflows/publish-to-pypi.yml @@ -0,0 +1,43 @@ +name: Publish Python 🐍 distributions 📦 to PyPI + +on: + release: + types: [published] + +permissions: + contents: read + +jobs: + build-n-publish: + name: Build and publish Python 🐍 distributions 📦 to PyPI + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: "3.x" + + - name: Install pypa/build + run: >- + python -m + pip install + build + --user + + - name: Build a binary wheel and a source tarball + run: >- + python -m + build + --sdist + --wheel + --outdir dist/ + . + + - name: Publish distribution 📦 to PyPI + uses: pypa/gh-action-pypi-publish@release/v1 + with: + password: ${{ secrets.PYPI_API_TOKEN }} diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 19fd7c3..53cf188 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -10,6 +10,7 @@ on: jobs: build: + name: Build and test Python 🐍 package runs-on: ubuntu-latest strategy: diff --git a/setup.cfg b/setup.cfg index 37773b2..63ea00a 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = speechkit -version = 2.2.1 +version = 2.2.2 author = Tikhon Petrishchev author_email = tikhon.petrishchev@gmail.com description = Python SDK for Yandex Speechkit API. diff --git a/src/speechkit/__init__.py b/src/speechkit/__init__.py index fcdf06b..fb3a2ab 100644 --- a/src/speechkit/__init__.py +++ b/src/speechkit/__init__.py @@ -4,7 +4,7 @@ """ __author__ = 'Tikhon Petrishchev' -__version__ = '2.2.1' +__version__ = '2.2.2' from speechkit._auth import Session from speechkit._recognition.streaming_recognition import DataStreamingRecognition