mirror of
https://github.com/chidiwilliams/buzz.git
synced 2026-03-14 22:55:46 +01:00
Add publish PyPI step (#617)
This commit is contained in:
parent
eedc2ab2f9
commit
69d1dd56f2
2 changed files with 33 additions and 1 deletions
28
.github/workflows/ci.yml
vendored
28
.github/workflows/ci.yml
vendored
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue