diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index dadb60f3..aa84876e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -221,7 +221,7 @@ update-dependencies: image: curlimages/curl:latest rules: - if: '$CI_COMMIT_TAG =~ /^v\d+\.\d+\.\d+$/' - - if: '$CI_COMMIT_TAG =~ /^rc\d+\.\d+\.\d+$/' + - if: '$CI_COMMIT_TAG =~ /^rc\d+\.\d+\.\d+-\d+$/' before_script: - export RELEASE_TYPE=$(echo $CI_COMMIT_TAG | grep -oE "[a-z]+") - export RELEASE_VERSION=$(echo $CI_COMMIT_TAG | grep -oE "\d+\.\d+\.\d+") diff --git a/scripts/publish-snap-stable.sh b/scripts/publish-snap-stable.sh index a642c862..5219a89b 100755 --- a/scripts/publish-snap-stable.sh +++ b/scripts/publish-snap-stable.sh @@ -2,7 +2,7 @@ RELEASE_TYPE=$(echo $CI_COMMIT_TAG | grep -oE "[a-z]+") echo $SNAPCRAFT_LOGIN_FILE | snapcraft login --with - snapcraft -if [RELEASE_TYPE = "rc"]; then +if [ "$RELEASE_TYPE" = "rc" ]; then snapcraft upload --release=candidate *.snap else snapcraft upload --release=stable *.snap diff --git a/scripts/release-playstore.sh b/scripts/release-playstore.sh index d9cc685c..f78d38cb 100755 --- a/scripts/release-playstore.sh +++ b/scripts/release-playstore.sh @@ -1,7 +1,7 @@ #!/bin/sh -ve RELEASE_TYPE=$(echo $CI_COMMIT_TAG | grep -oE "[a-z]+") cd android -if [RELEASE_TYPE = "rc"]; then +if [ "$RELEASE_TYPE" = "rc" ]; then bundle exec fastlane deploy_candidate else bundle exec fastlane deploy_release