diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8744e8da03..462f1344d3 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -434,6 +434,7 @@ gimp-flatpak: - if: '$CI_MERGE_REQUEST_LABELS =~ /.*Package:Snap.*/' interruptible: true - if: '$GIMP_CI_SNAP != null || "$[[ inputs.distribution_pipeline ]]" =~ /.*GIMP_CI_SNAP.*/' + - <<: *CI_RELEASE parallel: matrix: - RUNNER: [aarch64, x86_64_v3] diff --git a/build/linux/snap/3_dist-gimp-snapcraft.sh b/build/linux/snap/3_dist-gimp-snapcraft.sh index f77890522c..08738ee468 100644 --- a/build/linux/snap/3_dist-gimp-snapcraft.sh +++ b/build/linux/snap/3_dist-gimp-snapcraft.sh @@ -86,11 +86,12 @@ fi # Publish GIMP snap on Snap Store -#if [ "$CI_COMMIT_TAG" = "$(git describe --all | sed 's|tags/||')" ]; then -# printf "\e[0Ksection_start:`date +%s`:${SNAP}_submission[collapsed=true]\r\e[0KPublishing snap to Snap Store\n" -# snapcraft upload --release=$TRACK/stable $output_dir/${SNAP} -# printf "\e[0Ksection_end:`date +%s`:${SNAP}_submission\r\e[0K\n" -#fi +# (the credentials are stored on SNAPCRAFT_STORE_CREDENTIALS protected var) +if [ "$CI_COMMIT_TAG" = "$(git describe --all | sed 's|tags/||')" ]; then + printf "\e[0Ksection_start:`date +%s`:${SNAP}_submission[collapsed=true]\r\e[0KPublishing snap to Snap Store\n" + snapcraft upload --release=$TRACK/stable $output_dir/${SNAP} + printf "\e[0Ksection_end:`date +%s`:${SNAP}_submission\r\e[0K\n" +fi done rm snapcraft.yaml