mirror of
https://github.com/krille-chan/fluffychat
synced 2024-09-17 08:55:12 +00:00
follow: Fix CI release type check
This commit is contained in:
parent
85eb40e5b3
commit
e0ba16cdfe
3 changed files with 3 additions and 3 deletions
|
@ -221,7 +221,7 @@ update-dependencies:
|
||||||
image: curlimages/curl:latest
|
image: curlimages/curl:latest
|
||||||
rules:
|
rules:
|
||||||
- if: '$CI_COMMIT_TAG =~ /^v\d+\.\d+\.\d+$/'
|
- 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:
|
before_script:
|
||||||
- export RELEASE_TYPE=$(echo $CI_COMMIT_TAG | grep -oE "[a-z]+")
|
- export RELEASE_TYPE=$(echo $CI_COMMIT_TAG | grep -oE "[a-z]+")
|
||||||
- export RELEASE_VERSION=$(echo $CI_COMMIT_TAG | grep -oE "\d+\.\d+\.\d+")
|
- export RELEASE_VERSION=$(echo $CI_COMMIT_TAG | grep -oE "\d+\.\d+\.\d+")
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
RELEASE_TYPE=$(echo $CI_COMMIT_TAG | grep -oE "[a-z]+")
|
RELEASE_TYPE=$(echo $CI_COMMIT_TAG | grep -oE "[a-z]+")
|
||||||
echo $SNAPCRAFT_LOGIN_FILE | snapcraft login --with -
|
echo $SNAPCRAFT_LOGIN_FILE | snapcraft login --with -
|
||||||
snapcraft
|
snapcraft
|
||||||
if [RELEASE_TYPE = "rc"]; then
|
if [ "$RELEASE_TYPE" = "rc" ]; then
|
||||||
snapcraft upload --release=candidate *.snap
|
snapcraft upload --release=candidate *.snap
|
||||||
else
|
else
|
||||||
snapcraft upload --release=stable *.snap
|
snapcraft upload --release=stable *.snap
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/sh -ve
|
#!/bin/sh -ve
|
||||||
RELEASE_TYPE=$(echo $CI_COMMIT_TAG | grep -oE "[a-z]+")
|
RELEASE_TYPE=$(echo $CI_COMMIT_TAG | grep -oE "[a-z]+")
|
||||||
cd android
|
cd android
|
||||||
if [RELEASE_TYPE = "rc"]; then
|
if [ "$RELEASE_TYPE" = "rc" ]; then
|
||||||
bundle exec fastlane deploy_candidate
|
bundle exec fastlane deploy_candidate
|
||||||
else
|
else
|
||||||
bundle exec fastlane deploy_release
|
bundle exec fastlane deploy_release
|
||||||
|
|
Loading…
Reference in a new issue