From 6a62b3c3e8699b2315a256230babbe19c851195e Mon Sep 17 00:00:00 2001
From: Lorenzo Zolfanelli <lorenzo.zolfanelli@espci.psl.eu>
Date: Mon, 22 Jan 2024 14:26:06 +0100
Subject: [PATCH] chore(ci): automatic pypi publish of tags

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

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 02b6d89..5c1f150 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -25,3 +25,11 @@ test:
         coverage_format: cobertura
         path: coverage.xml
 
+publish:
+  needs: [test]
+  only:
+    - tags
+  script:
+    - pip install --upgrade build twine
+    - python -m build
+    - twine upload dist/*
-- 
GitLab