diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 6344399d053c230250a350162b583bba703a73a7..c3dd318cbad827605f084b6fb2cf942facc81b12 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,9 +1,11 @@
+image: rust:bullseye
+
 stages:
   - build
+  - publish
 
 build:
   stage: build
-  image: rust:bullseye
   before_script:
     - apt-get -y update
     - apt-get -y install gcc libjq-dev libonig-dev libpam0g-dev
@@ -13,3 +15,12 @@ build:
   artifacts:
     paths:
       - target/release/libnss_pam_webapi.so
+
+pages:
+    stage: publish
+    script:
+      - mkdir public
+      - cp target/release/libnss_pam_webapi.so public/
+    artifacts:
+      paths:
+        - public