20 lines
484 B
YAML
20 lines
484 B
YAML
name: upload-pypi
|
|
on:
|
|
push:
|
|
tags: v*
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
- name: Set up Python 3.7
|
|
uses: actions/setup-python@v1
|
|
with:
|
|
python-version: 3.7
|
|
- name: Create sdist
|
|
run: python setup.py sdist
|
|
- name: Publish package to PyPI
|
|
uses: pypa/gh-action-pypi-publish@v1.0.0a0
|
|
with:
|
|
user: __token__
|
|
password: ${{ secrets.pypi_password }}
|