diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f6c79b43..33329be1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: diff --git a/pyproject.toml b/pyproject.toml index 2fb519a5..f00319c4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,11 +1,15 @@ [tool.poetry] -name = "buzz" +name = "buzz-captions" version = "0.8.4" description = "" authors = ["Chidi Williams "] 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"