diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 78600c2923f275878c122a83a0549cdc6e0759a3..422318323a12b8e822d0d802c9fbd93efbc1e742 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,5 +1,6 @@
 stages:
   - test
+  - build
 
 mdcheck:
   stage: test
@@ -8,6 +9,7 @@ mdcheck:
     - mdl *.md
 
 pylint:
+  allow_failure: true
   stage: test
   image: it4innovations/docker-pycheck:latest
   script:
@@ -16,3 +18,17 @@ pylint:
     - if [ -f pip-upgradedependencies.egg-info/requires.txt ]; then pip install $(paste -d " " -s pip-upgradedependencies.egg-info/requires.txt); fi
     - pip install better-setuptools-git-version
     - pylint $(find . -type f -name "*.py")
+
+build:
+  stage: build
+  image: it4innovations/docker-pypi:latest
+  artifacts:
+    expire_in: 1 day
+    paths:
+      - dist/pipupgradedependencies*tar.gz
+  script:
+    - export PYTHONIOENCODING=UTF-8
+    - export LC_CTYPE=en_US.UTF-8
+    - pip install setuptools-git-version setuptools-markdown
+      #- python setup.py --version
+    - python setup.py sdist