Skip to content

Commit

Permalink
Add publish-to-pypi.yml workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
tikhonp committed Apr 8, 2023
1 parent 5c97c21 commit 8453263
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 2 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
@@ -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 }}
1 change: 1 addition & 0 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:

jobs:
build:
name: Build and test Python 🐍 package

runs-on: ubuntu-latest
strategy:
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/speechkit/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8453263

Please sign in to comment.