mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-14 07:59:30 +01:00
11 lines
288 B
Bash
Executable File
11 lines
288 B
Bash
Executable File
#!/bin/sh -ve
|
|
RELEASE_TYPE=$(echo $CI_COMMIT_TAG | grep -oE "[a-z]+")
|
|
echo $SNAPCRAFT_LOGIN_FILE | snapcraft login --with -
|
|
snapcraft
|
|
if [ "$RELEASE_TYPE" = "rc" ]; then
|
|
snapcraft upload --release=candidate *.snap
|
|
else
|
|
snapcraft upload --release=stable *.snap
|
|
fi
|
|
snapcraft logout
|