Update setup.py #7
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: Publish Python package | |
on: | |
push: | |
tags: | |
- 'v*.*.*' # Publishes only when a tag like v1.0.0 is pushed | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out the code | |
uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.x' | |
- name: Install build dependencies | |
run: python -m pip install --upgrade pip setuptools wheel | |
- name: Build the package | |
run: python setup.py sdist bdist_wheel | |
- name: Publish to PyPI | |
uses: pypa/gh-action-pypi-publish@v1.8.3 | |
with: | |
password: ${{ secrets.PYPI_API_TOKEN }} |