forked from coqui-ai/TTS
-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: simplify release, cibuildwheel not needed anymore
- Loading branch information
Showing
1 changed file
with
19 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,8 +7,7 @@ defaults: | |
shell: | ||
bash | ||
jobs: | ||
build-sdist: | ||
name: Build source distribution | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
@@ -20,37 +19,29 @@ jobs: | |
if [[ "v$version" != "$tag" ]]; then | ||
exit 1 | ||
fi | ||
- uses: actions/setup-python@v5 | ||
- name: Install uv | ||
uses: astral-sh/setup-uv@v3 | ||
with: | ||
python-version: 3.9 | ||
- run: | | ||
python -m pip install -U pip setuptools build | ||
- run: | | ||
python -m build | ||
- run: | | ||
pip install dist/*.tar.gz | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: build-sdist | ||
path: dist/*.tar.gz | ||
build-wheels: | ||
name: Build wheels on ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, windows-latest, macos-latest] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Build wheels | ||
uses: pypa/[email protected] | ||
version: "0.4.27" | ||
enable-cache: true | ||
cache-dependency-glob: "**/pyproject.toml" | ||
- name: Set up Python | ||
run: uv python install 3.12 | ||
- name: Build sdist and wheel | ||
run: uv build | ||
- name: Test installation of sdist and wheel | ||
run: | | ||
uv venv --no-project | ||
uv pip install dist/*.tar.gz | ||
uv pip install dist/*.whl | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: build-wheels-${{ matrix.os }} | ||
path: ./wheelhouse/*.whl | ||
name: build | ||
path: dist/* | ||
publish-artifacts: | ||
name: Publish to PyPI | ||
runs-on: ubuntu-latest | ||
needs: [build-sdist, build-wheels] | ||
needs: [build] | ||
environment: | ||
name: release | ||
url: https://pypi.org/p/coqui-tts | ||
|
@@ -60,8 +51,7 @@ jobs: | |
- uses: actions/download-artifact@v4 | ||
with: | ||
path: dist | ||
pattern: build-* | ||
merge-multiple: true | ||
pattern: build | ||
- run: | | ||
ls -lh dist/ | ||
- name: Publish package distributions to PyPI | ||
|