Skip to content

Commit 8453263

Browse files
committed
Add publish-to-pypi.yml workflow
1 parent 5c97c21 commit 8453263

File tree

4 files changed

+46
-2
lines changed

4 files changed

+46
-2
lines changed

.github/workflows/publish-to-pypi.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Publish Python 🐍 distributions 📦 to PyPI
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
permissions:
8+
contents: read
9+
10+
jobs:
11+
build-n-publish:
12+
name: Build and publish Python 🐍 distributions 📦 to PyPI
13+
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- uses: actions/checkout@v3
18+
19+
- name: Set up Python
20+
uses: actions/setup-python@v4
21+
with:
22+
python-version: "3.x"
23+
24+
- name: Install pypa/build
25+
run: >-
26+
python -m
27+
pip install
28+
build
29+
--user
30+
31+
- name: Build a binary wheel and a source tarball
32+
run: >-
33+
python -m
34+
build
35+
--sdist
36+
--wheel
37+
--outdir dist/
38+
.
39+
40+
- name: Publish distribution 📦 to PyPI
41+
uses: pypa/gh-action-pypi-publish@release/v1
42+
with:
43+
password: ${{ secrets.PYPI_API_TOKEN }}

.github/workflows/python-package.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ on:
1010

1111
jobs:
1212
build:
13+
name: Build and test Python 🐍 package
1314

1415
runs-on: ubuntu-latest
1516
strategy:

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
22
name = speechkit
3-
version = 2.2.1
3+
version = 2.2.2
44
author = Tikhon Petrishchev
55
author_email = tikhon.petrishchev@gmail.com
66
description = Python SDK for Yandex Speechkit API.

src/speechkit/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"""
55

66
__author__ = 'Tikhon Petrishchev'
7-
__version__ = '2.2.1'
7+
__version__ = '2.2.2'
88

99
from speechkit._auth import Session
1010
from speechkit._recognition.streaming_recognition import DataStreamingRecognition

0 commit comments

Comments
 (0)