mirror of
https://github.com/2noise/ChatTTS.git
synced 2026-09-21 04:28:02 +08:00
37 lines
824 B
YAML
37 lines
824 B
YAML
name: Upload to PyPI
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- 'v*'
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-22.04
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
ref: ${{github.ref_name}}
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v5
|
|
|
|
- name: Install Dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
python -m pip install --upgrade setuptools
|
|
python -m pip install --upgrade wheel
|
|
pip install twine
|
|
|
|
- name: Build Package
|
|
run: |
|
|
echo "Tag name from GITHUB_REF_NAME: $GITHUB_REF_NAME"
|
|
echo "Tag name from github.ref_name: ${{ github.ref_name }}"
|
|
python setup.py build_py
|
|
|
|
- name: Upload Package
|
|
run: |
|
|
twine upload dist/* -u "__token__" -p ${{ secrets.PYPI_TOKEN }}
|