fix(workflow): pypi upload #2
Workflow file for this run
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
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 | |
env: | |
CHTTS_VER: ${{ github.ref_name }} | |
run: | | |
echo "Release Tag: ${{ github.ref_name }}" | |
python setup.py build_py | |
- name: Upload Package | |
run: | | |
twine upload dist/* -u "__token__" -p ${{ secrets.PYPI_TOKEN }} |