From ac6e11e284452439fec1707e01832a79467dcd24 Mon Sep 17 00:00:00 2001
From: Burak Hancerli <burak.hancerli@qt.io>
Date: Tue, 4 Jun 2024 09:42:23 +0200
Subject: [PATCH] cicd: fix the packaging step

---
 cicd/stages/release.yml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/cicd/stages/release.yml b/cicd/stages/release.yml
index 71435f1..fa6b4b8 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}
-- 
GitLab