diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 091b8c160afb1760f82d7dfaa4ca1c374a81a049..15cd59f1bf87b85046b097400253e1119d11b59a 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -19,7 +19,9 @@ push_to_github:
         - bash -c "cat packed-refs | grep -v 'refs/pull' > packed-refs-new; echo 'Removed pull refs.'"
         - mv packed-refs-new packed-refs
         - bash -c "git push --force --mirror github 2>&1 | grep -v duniter-gitlab; echo $?"
-      
+  only:
+    - master
+
 publish:  
   stage: deploy
   image: node:6.12-alpine