From fbfad9d10279deedc3a01bc2f1a687fb2d1f96c1 Mon Sep 17 00:00:00 2001
From: Sonia Zorba <sonia.zorba@inaf.it>
Date: Sun, 16 May 2021 10:35:08 +0000
Subject: [PATCH] Update .gitlab-ci.yml

---
 .gitlab-ci.yml | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index addcdce..35ef8de 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -5,3 +5,13 @@ test_job:
     script:
         - pip install -r requirements.txt
         - python -m unittest tests/coords_test.py
+
+
+deploy_job:
+    stage: deploy
+    tags:
+        - intro-docker
+    script:
+        - pip install twine
+        - python setup.py sdist bdist_wheel
+        - TWINE_PASSWORD=${CI_JOB_TOKEN} TWINE_USERNAME=gitlab-ci-token python -m twine upload --repository-url https://www.ict.inaf.it/gitlab/api/v4/projects/${CI_PROJECT_ID}/packages/pypi dist/*
-- 
GitLab