mirror of
https://github.com/m-bain/whisperX.git
synced 2025-07-01 18:17:27 -04:00
feat: update build and release workflow to use uv for package installation and publishing
This commit is contained in:
22
.github/workflows/build-and-release.yml
vendored
22
.github/workflows/build-and-release.yml
vendored
@ -11,25 +11,21 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set up Python
|
- name: Install uv
|
||||||
uses: actions/setup-python@v5
|
uses: astral-sh/setup-uv@v5
|
||||||
with:
|
with:
|
||||||
|
version: "0.5.14"
|
||||||
python-version: "3.9"
|
python-version: "3.9"
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Build package
|
||||||
run: |
|
run: uv build
|
||||||
python -m pip install build
|
|
||||||
|
|
||||||
- name: Build wheels
|
|
||||||
run: python -m build --wheel
|
|
||||||
|
|
||||||
- name: Release to Github
|
- name: Release to Github
|
||||||
uses: softprops/action-gh-release@v2
|
uses: softprops/action-gh-release@v2
|
||||||
with:
|
with:
|
||||||
files: dist/*
|
files: dist/*.whl
|
||||||
|
|
||||||
- name: Publish package to PyPi
|
- name: Publish package to PyPi
|
||||||
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
|
run: uv publish
|
||||||
with:
|
env:
|
||||||
user: __token__
|
UV_PUBLISH_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
|
||||||
password: ${{ secrets.PYPI_API_TOKEN }}
|
|
||||||
|
Reference in New Issue
Block a user