Skip to content

Update pypi.yml

Update pypi.yml #36

Workflow file for this run

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.7
if: startsWith(github.ref, 'refs/tags')
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: Run sdist
if: startsWith(github.ref, 'refs/tags')
run: python3 setup.py sdist
- name: Publish distribution 📦 to PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@00ef3b81828a3fa69f3434842ce50ec3981351b0
with:
user: __token__
password: ${{ secrets.pypi_password }}