Skip to content

Commit

Permalink
releases: 0.0.4
Browse files Browse the repository at this point in the history
Signed-off-by: Aaron <[email protected]>
  • Loading branch information
aarnphm committed Feb 28, 2023
1 parent 9681462 commit 1fa04b8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 14 deletions.
27 changes: 14 additions & 13 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ jobs:
build-sdist:
name: Build source distribution
runs-on: ubuntu-latest
timeout-minutes: 20
if: github.repository_owner == 'aarnphm' && github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') # Don't run on fork repository
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -36,16 +38,19 @@ jobs:
pip install build
python -m build --sdist
- uses: actions/upload-artifact@v3
with:
path: dist/*.tar.gz
- name: Upload to PyPI
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: |
pip install twine
twine upload dist/* --repository pypi --verbose
publish:
name: Build and publish wheels to PyPI for python${{ matrix.python }} (${{ matrix.os }})
needs: [build-sdist]
build-wheel:
name: Build wheels for python${{ matrix.python }} (${{ matrix.os }})
runs-on: ${{ matrix.os }}
timeout-minutes: 20
if: github.repository_owner == 'aarnphm' && github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') # Don't run on fork repository
if: github.repository_owner == 'aarnphm' && github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') # Don't run on fork repository
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -73,15 +78,11 @@ jobs:
run: |
VERSION=${{ github.ref_name }}
echo "version=${VERSION:1}" >>$GITHUB_OUTPUT
- uses: actions/download-artifact@v3
with:
name: artifact
path: dist
- name: Publish built wheels
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: |
pip install twine
twine upload dist/* --repository pypi --verbose
./tools/bazel run //requirements:pypi.update
./tools/bazel run -c dbg --define=ci=true --stamp --embed_label=${{ steps.get-info.outputs.version }} -- //:whispercpp_wheel.publish --repository pypi --verbose
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ description = "whispercpp: Pybind11 bindings for whisper.cpp"
readme = { file = "README.md", content-type = "text/markdown" }
license = { text = "Apache-2.0" }
requires-python = ">=3.8"
version = "0.0.3"
version = "0.0.4"
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
Expand Down

0 comments on commit 1fa04b8

Please sign in to comment.