Skip to content

Merge branch 'master' into dependabot/pip/pillow-9.3.0 #29

Merge branch 'master' into dependabot/pip/pillow-9.3.0

Merge branch 'master' into dependabot/pip/pillow-9.3.0 #29

Workflow file for this run

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 }}