fluffychat/scripts/publish-snap-stable.sh
2021-12-05 09:13:23 +01:00

10 lines
227 B
Bash
Executable File

#!/bin/sh -ve
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