diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 37b740316618de8754ed4bbba0eddee51da1d92f..ca14a87e9c5bf9150b0f523c071f729ba7a4a54a 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -21,6 +21,7 @@ hex_publish:
   script:
     - mkdir -p ~/.hex && printf "{key,<<\"$HEX_KEY\">>}.\n{username,<<\"$HEX_USERNAME\">>}.\n" > ~/.hex/hex.config
     - mkdir -p ~/.config/rebar3 && printf "{plugins, [rebar3_hex]}.\n" > ~/.config/rebar3/rebar.config
+    - rebar3 update
     - echo "Y" | rebar3 hex publish
 
 aws_publish: