mirror of
https://github.com/YuzuZensai/spleeter.git
synced 2026-01-06 04:32:43 +00:00
🔖 2.1.0 release
This commit is contained in:
38
.github/workflows/pypi.yml
vendored
38
.github/workflows/pypi.yml
vendored
@@ -4,40 +4,22 @@ on:
|
||||
branches:
|
||||
- master
|
||||
env:
|
||||
TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }}
|
||||
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
|
||||
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
|
||||
jobs:
|
||||
package-and-deploy:
|
||||
strategy:
|
||||
matrix:
|
||||
platform: [cpu, gpu]
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: 3.7
|
||||
- uses: actions/cache@v2
|
||||
with:
|
||||
path: ~/.cache/pip
|
||||
key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-pip-
|
||||
- uses: actions/cache@v2
|
||||
with:
|
||||
path: ${{ env.GITHUB_WORKSPACE }}/dist
|
||||
key: sdist-${{ matrix.platform }}-${{ hashFiles('**/setup.py') }}
|
||||
restore-keys: |
|
||||
sdist-${{ matrix.platform }}-${{ hashFiles('**/setup.py') }}
|
||||
sdist-${{ matrix.platform }}
|
||||
sdist-
|
||||
- name: Install dependencies
|
||||
run: pip install --upgrade pip setuptools twine
|
||||
- if: ${{ matrix.platform == 'cpu' }}
|
||||
name: Package CPU distribution
|
||||
run: make build
|
||||
- if: ${{ matrix.platform == 'gpu' }}
|
||||
name: Package GPU distribution)
|
||||
run: make build-gpu
|
||||
- name: Install Poetry
|
||||
run: |
|
||||
pip install poetry
|
||||
poetry config virtualenvs.in-project false
|
||||
poetry config virtualenvs.path ~/.virtualenvs
|
||||
poetry config pypi-token.pypi $PYPI_TOKEN
|
||||
- name: Deploy to pypi
|
||||
run: make deploy
|
||||
run: |
|
||||
poetry build
|
||||
poetry publish
|
||||
Reference in New Issue
Block a user