From c24a8f972d9cae3469038d9e9f10ee43398dd259 Mon Sep 17 00:00:00 2001
From: Georg Krause <mail@georg-krause.net>
Date: Thu, 29 Sep 2022 09:57:51 +0200
Subject: [PATCH] ci(deploy): Add package publishing to pypi

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

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 6ca89a0..39ac286 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -7,6 +7,8 @@
 # See https://docs.gitlab.com/ee/ci/variables/#cicd-variable-precedence
 stages:
 - test
+- publish
+
 sast:
   stage: test
 include:
@@ -26,3 +28,11 @@ pytest:
       coverage_report:
         coverage_format: cobertura
         path: coverage.xml
+
+publish:
+  image: python:3.10-alpine
+  before_script:
+    - apk add poetry
+    - poetry install
+  script:
+    - poetry publish --build
-- 
GitLab