From ad173d7f594eb33c402635ae33193d573c4b5276 Mon Sep 17 00:00:00 2001 From: Burak Hancerli <burak.hancerli@qt.io> Date: Tue, 4 Jun 2024 09:17:10 +0200 Subject: [PATCH] cicd: fix the packaging step --- cicd/stages/release.yml | 25 ++++++++++--------------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/cicd/stages/release.yml b/cicd/stages/release.yml index 0773e9a..01a65cf 100644 --- a/cicd/stages/release.yml +++ b/cicd/stages/release.yml @@ -19,21 +19,16 @@ create-packages: - echo ${QDS_CI_ARTIFACTS_PATH}; ls -l ${QDS_CI_ARTIFACTS_PATH} - cd ${QDS_CI_ARTIFACTS_PATH} - | - for platform in $(ls); do - echo "Creating packages for platform $platform" - cd "$platform" - for arch in $(ls); do - echo "Running for $platform-$arch. Compressing..." - # 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" - tar -czf "$platform-$arch.tar.gz" * - echo "Uploading $platform-$arch.tar.gz to GitLab Package Registry" - curl --header "JOB-TOKEN: ${CI_JOB_TOKEN}" --upload-file "${platform}-${arch}.tar.gz" ${QDS_PACKAGE_URL}/qt-ui-viewer-${CI_COMMIT_TAG}-qt${QDS_CI_QT_VERSION}-${platform}-${arch}.tar.gz - cd .. - done - cd .. + for arch in $(ls); do + echo "Running for $platform-$arch. Compressing..." + # 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" + tar -czf "$platform-$arch.tar.gz" * + echo "Uploading $platform-$arch.tar.gz to GitLab Package Registry" + curl --header "JOB-TOKEN: ${CI_JOB_TOKEN}" --upload-file "${platform}-${arch}.tar.gz" ${QDS_PACKAGE_URL}/qt-ui-viewer-${CI_COMMIT_TAG}-qt${QDS_CI_QT_VERSION}-${platform}-${arch}.tar.gz + cd .. done artifacts: name: qt-ui-viewer-${CI_JOB_ID}-qt${QDS_CI_QT_VERSION} -- GitLab