Build snap based on branch instead of tag

This commit is contained in:
JonnyWong16 2020-12-19 12:11:03 -08:00
commit 2e5dd05a6c
No known key found for this signature in database
GPG key ID: B1F1F9807184697A
2 changed files with 5 additions and 12 deletions

View file

@ -37,11 +37,6 @@ parts:
else
GRADE=stable
fi
if [ "$VERSION" = "$TAG" ] && [ ! "$VERSION" = "${VERSION%-beta}" ]; then
BRANCH=beta
elif [ "$VERSION" = "$TAG" ]; then
BRANCH=master
fi
echo $BRANCH > branch.txt
echo $COMMIT > version.txt
snapcraftctl set-version "$VERSION"