mirror of
https://github.com/shouptech/synthale.git
synced 2026-02-03 07:29:42 +00:00
Add automated pypi upload
This commit is contained in:
parent
88fb3c01d8
commit
e46a982cc2
1 changed files with 31 additions and 0 deletions
|
|
@ -74,6 +74,26 @@ jobs:
|
|||
pip install flake8 flake8-docstrings
|
||||
flake8
|
||||
|
||||
pypi:
|
||||
docker:
|
||||
- image: python:3
|
||||
steps:
|
||||
- checkout
|
||||
|
||||
- run:
|
||||
name: Install twine
|
||||
command: |
|
||||
pip install twine
|
||||
|
||||
- run:
|
||||
name: Build package
|
||||
command: |
|
||||
python setup.py sdist bdist_wheel
|
||||
|
||||
- run:
|
||||
name: Upload to PyPi
|
||||
command: |
|
||||
twine upload dist/*
|
||||
|
||||
workflows:
|
||||
version: 2
|
||||
|
|
@ -86,3 +106,14 @@ workflows:
|
|||
requires:
|
||||
- test-py37
|
||||
- style
|
||||
- pypi:
|
||||
requires:
|
||||
- test-py35
|
||||
- test-py36
|
||||
- test-py37
|
||||
- style
|
||||
filters:
|
||||
tags:
|
||||
only: /v.*/
|
||||
branches:
|
||||
ignore: /.*/
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue