]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - scripts/release.sh
Move redundancy in its own travis container
[github/Chocobozzz/PeerTube.git] / scripts / release.sh
index ef6399b68a2ff6690892d6842d9909be49d84f06..3a8643b5a4ebe6083a36bcf6cb081f166817ffd1 100755 (executable)
@@ -24,8 +24,10 @@ if [ -z "$GITHUB_TOKEN" ]; then
   exit -1
 fi
 
+maintainer_public_key=${MAINTAINER_GPG:-"583A612D890159BE"}
+
 branch=$(git symbolic-ref --short -q HEAD)
-if [ "$branch" != "develop" ] && [[ "$branch" != feature/* ]]; then
+if [ "$branch" != "develop" ] && [[ "$branch" != release/* ]]; then
   echo "Need to be on develop or release branch."
   exit -1
 fi
@@ -75,7 +77,6 @@ rm "./client/dist/embed-stats.json"
                           "$directory_name/dist" "$directory_name/package.json" \
                           "$directory_name/scripts" "$directory_name/support" \
                           "$directory_name/tsconfig.json" "$directory_name/yarn.lock")
-  maintainer_public_key="583A612D890159BE"
 
   # temporary setup
   cd ..