From 65fca4375be76d73ab5066ecd700ea26cb416425 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Piotr=20Ma=C5=9Blanka?= <piotr.maslanka@henrietta.com.pl>
Date: Thu, 1 Jul 2021 17:12:15 +0200
Subject: [PATCH] add deployment

---
 .travis.yml | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/.travis.yml b/.travis.yml
index e2c607e..4f197f2 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,7 +1,8 @@
 language: python
 stages:
   - name: test
-
+  - name: deploy
+    if: tag is present
 cache: pip
 before_script:
   - python setup.py install
@@ -18,3 +19,10 @@ jobs:
       python: "3.9"
     - stage: test
       python: "pypy3.5"
+    - stage: deploy
+      python: "3.8"
+      script:
+        - pip install wheel twine
+        - python setup.py bdist bdist_wheel
+        - twine upload -u $PYPI_USER -p $PYPI_PWD dist/*
+
-- 
GitLab