Add publish PyPI step (#617)

This commit is contained in:
Chidi Williams 2023-10-28 19:57:54 +01:00 committed by GitHub
commit 69d1dd56f2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 33 additions and 1 deletions

View file

@ -262,6 +262,34 @@ jobs:
summary-always: true
auto-push: true
publish-pypi:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: macos-latest
- os: windows-latest
- os: ubuntu-20.04
needs: [ build, test ]
if: startsWith(github.ref, 'refs/tags/')
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- uses: actions/setup-python@v4
with:
python-version: "3.10.7"
- name: Install Poetry Action
uses: snok/install-poetry@v1.3.1
with:
virtualenvs-create: true
virtualenvs-in-project: true
- name: Publish to PyPI
run: |
poetry config pypi-token.pypi ${{ secrets.PYPI_TOKEN }}
poetry publish --build --skip-existing
release:
runs-on: ${{ matrix.os }}
strategy:

View file

@ -1,11 +1,15 @@
[tool.poetry]
name = "buzz"
name = "buzz-captions"
version = "0.8.4"
description = ""
authors = ["Chidi Williams <williamschidi1@gmail.com>"]
license = "MIT"
readme = "README.md"
include = ["buzz/libwhisper.*", "buzz/whisper_cpp.py"]
repository = "https://github.com/chidiwilliams/buzz"
packages = [
{ include = "buzz" },
]
[tool.poetry.dependencies]
python = ">=3.9.13,<3.11"