Update README.md #47
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 distributions to PyPI | |
on: push | |
jobs: | |
build-n-publish: | |
name: Build and publish Python distributions to PyPI | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@master | |
- name: Set up Python 3.8 | |
uses: actions/setup-python@v1 | |
with: | |
python-version: 3.8 | |
- name: Install pypa/build | |
run: >- | |
python -m | |
pip install | |
wheel bump2version | |
--user | |
- name: Bump Patch Version | |
env: | |
COMMIT_MSG: ${{ github.event.head_commit.message }} | |
run: >- | |
bump2version --current-version $(python setup.py --version ) patch setup.py | |
- name: Build a binary wheel and a source tarball | |
run: >- | |
python setup.py sdist bdist_wheel | |
- name: Publish distribution to PyPI | |
uses: pypa/gh-action-pypi-publish@master | |
with: | |
password: ${{ secrets.PYPI_API_TOKEN }} |