fluffychat/scripts/publish-snap-stable.sh

11 lines
288 B
Bash
Raw Normal View History

2020-12-08 15:46:47 +01:00
#!/bin/sh -ve
2021-12-05 13:54:19 +01:00
RELEASE_TYPE=$(echo $CI_COMMIT_TAG | grep -oE "[a-z]+")
2021-11-14 10:44:59 +01:00
echo $SNAPCRAFT_LOGIN_FILE | snapcraft login --with -
snapcraft
2021-12-05 14:21:47 +01:00
if [ "$RELEASE_TYPE" = "rc" ]; then
2021-12-05 09:13:23 +01:00
snapcraft upload --release=candidate *.snap
else
snapcraft upload --release=stable *.snap
fi
2020-12-08 15:46:47 +01:00
snapcraft logout