diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index f2425a55d3631ca9aea7cc1b1fa3e9f52f7ddd6c..888a63667b48d80563035d0896f950eb4aa1582a 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -34,10 +34,10 @@ publish:
   script:
     - git status
     - git checkout ivy-repo || git checkout --orphan ivy-repo
-    - git status
     - git reset
     - git status
     - cp -r $ARTIFACT_DIR .
+    - git status
     - git add $(git ls-files -o ecore2java)
     - git commit -m "[skip ci] Automatic release of version $VERSION"
     - git show