feat(workflow): finish pypi upload #1
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 "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 }} |