diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index cc7dbae5028b7ed78edb137fe9be36e64ce8e979..082c3a975dd7e0a3ba29f8158c60756313ad9eca 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -7,7 +7,7 @@ default:
   before_script:
     - echo "setwd(\"$(pwd)\")" > .Rprofile
     - PATH=~/R/sources/R-${R_VERSION}/bin:$PATH
-    - rename "s/.${R_VERSION}.t/.t/" airGR_*.tar.gz
+    - rename "s/${R_VERSION}.airGR/airGR/" *.tar.gz
 
 .update_packages:
   stage: update_packages
@@ -24,7 +24,7 @@ default:
     - cd ..
     - echo "setwd(\"$(pwd)\")" > .Rprofile
     - R CMD build airgr
-    - rename "s/.t/.${R_VERSION}.t/" airGR_*.tar.gz
+    - rename "s/airGR/${R_VERSION}.airGR/" airGR_*.tar.gz
     - mv *.tar.gz airgr/
   artifacts:
     untracked: true