diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000000000000000000000000000000000000..d46593b090f652bf54bb9547e65fdc776139f5a6
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,35 @@
+image: clarinpl/cpp
+
+stages:
+  - build
+  - deploy
+
+build_deb:
+  stage: build
+  only:
+    - master
+    - deb
+  script:
+    - apt-get install -y apt-transport-https
+    - bash -c "wget -q -O - http://apt.clarin-pl.eu/KEY.gpg | apt-key add -"
+    - bash -c "echo 'deb https://apt.clarin-pl.eu/ /' > /etc/apt/sources.list.d/clarin.list"
+    - apt-get update && apt-get install -y
+        corpus2-python3.6
+    - mkdir build && cd build
+    - cmake .. && cmake --build . && cpack
+  artifacts:
+    paths:
+      - build/toki*.deb
+    expire_in: 1h
+      
+push_deb:
+  stage: deploy
+  only:
+    - master
+    - deb 
+  script:
+    - FILE=$(ls build/toki*.deb)
+    - curl --fail -i -X POST -F "file=@./${FILE}" -u "${APT_USERNAME}:${APT_PASSWORD}" https://apt.clarin-pl.eu/
+  dependencies:
+    - build_deb
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
index ffe547eba612e3f29ef9887c4852e8c988f90fbe..ee110f127ab055d7ad19979573697b90ab71157b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,6 +1,14 @@
-PROJECT(Tokenizer)
+PROJECT(toki)
 cmake_minimum_required(VERSION 2.6.0)
 
+set(toki_ver_major "1")
+set(toki_ver_minor "0")
+set(toki_ver_patch "0")
+set(TOKI_VERSION
+    "${toki_ver_major}.${toki_ver_minor}.${toki_ver_patch}")
+SET(CMAKE_INSTALL_PREFIX, "/usr")
+
+
 # use some of our own Find* scripts
 set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/CMakeScripts)
 
@@ -48,3 +56,17 @@ if(UNIX)
 add_subdirectory(tests)
 endif(UNIX)
 add_subdirectory(toki-app)
+
+
+# Requires to install dependencies
+set(CPACK_DEBIAN_PACKAGE_DEPENDS "libboost-all-dev, libicu-dev, corpus2-python3.6, libloki-dev")
+set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "")
+
+# Set *.deb package name and version
+SET(CPACK_PACKAGE_VERSION "${TOKI_VERSION}")
+SET(CPACK_GENERATOR "DEB")
+SET(CPACK_DEBIAN_PACKAGE_MAINTAINER "g419")
+set(CPACK_SYSTEM_NAME "all")
+set(CPACK_TOPLEVEL_TAG "all")
+INCLUDE(CPack)
+
diff --git a/libtoki/CMakeLists.txt b/libtoki/CMakeLists.txt
index 9a34d5c7f669c919a022327a8737c55b543acaf3..363acf32f37d643e9459e2b6c27abbd2341bbfcd 100644
--- a/libtoki/CMakeLists.txt
+++ b/libtoki/CMakeLists.txt
@@ -35,6 +35,7 @@ include_directories(${Boost_INCLUDE_DIR})
 link_directories(${Boost_LIBRARY_DIRS})
 set(LIBS ${LIBS} ${Boost_LIBRARIES})
 
+set(CMAKE_INSTALL_PREFIX /usr)
 set(LIBTOKI_INSTALL_DATA_DIR share/toki)
 set(LIBTOKI_PATH_SEPARATOR ";")
 set(LIBTOKI_DATA_DIR ".;${CMAKE_INSTALL_PREFIX}/${LIBTOKI_INSTALL_DATA_DIR}")