Add Github Action for publishing to PyPI
This commit is contained in:
parent
f2bd3911fd
commit
f1572393fb
1 changed files with 20 additions and 0 deletions
20
.github/workflows/upload-pypi.yml
vendored
Normal file
20
.github/workflows/upload-pypi.yml
vendored
Normal file
|
@ -0,0 +1,20 @@
|
|||
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 }}
|
Loading…
Reference in a new issue