diff --git a/cicd/stages/release.yml b/cicd/stages/release.yml
index 71435f171b33d4ecd1e28f9b5899ef889bf59eb0..fa6b4b86312a386e1f0bfc34806e39f8f988a9c4 100644
--- a/cicd/stages/release.yml
+++ b/cicd/stages/release.yml
@@ -25,11 +25,11 @@ create-packages:
           # app folder contains the apk for the app
           # test folder contains the apk for the tests
           # we only need to compress the app folder
-          cd "${arch}/app"
+          pushd "${arch}/app"
           tar -czf "${arch}.tar.gz" *
           echo "Uploading ${arch}.tar.gz to GitLab Package Registry"
           curl --header "JOB-TOKEN: ${CI_JOB_TOKEN}" --upload-file "${arch}.tar.gz" ${QDS_PACKAGE_URL}/qt-ui-viewer-${CI_COMMIT_TAG}-qt${QDS_CI_QT_VERSION}-${arch}.tar.gz
-          cd ..
+          popd
       done
   artifacts:
     name: qt-ui-viewer-${CI_JOB_ID}-qt${QDS_CI_QT_VERSION}