Skip to content

CD

CD #86

Workflow file for this run

name: CD
on:
create:
tags:
- "[0-9]+.[0-9]+.[0-9]+*"
jobs:
pypi:
name: Publish to PyPI
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@master
- name: Set up Python 3.7
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: Create distribution
run: python setup.py sdist
- name: Publish to PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.pypi_password }}