fixing README #197
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: Release | |
on: | |
push: | |
branches: [ main ] | |
tags: | |
- '[0-9]+.[0-9]+.[0-9]+*' | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Upgrade setuptools/build | |
run: | | |
pip3 install wheel --upgrade | |
pip3 install setuptools --upgrade | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.9 | |
- name: Release to pypi | |
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') | |
env: | |
TWINE_USERNAME: __token__ | |
TWINE_PASSWORD: ${{ secrets.PYPI_MAIN_TOKEN }} | |
run: | | |
python -m pip install --upgrade build | |
python -m build . | |
python -m pip install --upgrade twine | |
twine upload dist/* |