diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index f134b94..0fccb87 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -24,7 +24,7 @@ build:
     - job: gitversion
       artifacts: true
   script:
-    - sed -i "s/###VERSION###/$GitVersion_MajorMinorPatch/" src/optima35/__init__.py
+    - sed -i "s/###VERSION###/'$GitVersion_MajorMinorPatch'a'$GitVersion_BuildMetaData'/" src/optima35/__init__.py
     - cat src/optima35/__init__.py
     - python3 -m pip install --upgrade pip build
     - python3 -m build