Merge branch 'master' into dependabot/pip/pillow-9.3.0 #29
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 library to pypi | |
on: push | |
jobs: | |
build-n-publish: | |
name: Build and publish Python 🐍 distributions 📦 to PyPI | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- name: Set up Python 3.7 | |
if: startswith(github.event.ref, 'refs/tags') | |
uses: actions/setup-python@v1 | |
with: | |
python-version: 3.7 | |
- name: Install wheel | |
if: startswith(github.event.ref, 'refs/tags') | |
run: >- | |
python -m | |
pip install | |
wheel | |
--user | |
- name: Build a binary wheel and a source tarball | |
if: startswith(github.event.ref, 'refs/tags') | |
run: python setup.py sdist bdist_wheel | |
- name: Publish distribution 📦 to Test PyPI | |
if: startswith(github.event.ref, 'refs/tags') | |
uses: pypa/gh-action-pypi-publish@master | |
with: | |
password: ${{ secrets.test_pypi_password }} | |
repository_url: https://test.pypi.org/legacy/ | |
- name: Publish distribution 📦 to PyPI | |
if: startswith(github.event.ref, 'refs/tags') | |
uses: pypa/gh-action-pypi-publish@master | |
with: | |
password: ${{ secrets.pypi_password }} | |