1
0

release process: split release.sh into two

This allows the add_cosigner workflow to be done before the website links to new binaries.
(so Emzy or other builders can try to reproduce builds and add signatures before new binaries are fully live)
This commit is contained in:
SomberNight
2023-01-26 11:40:41 +00:00
parent 8b5aa5c433
commit 697c700a1f
5 changed files with 135 additions and 37 deletions

View File

@@ -5,9 +5,10 @@
# - ELECBUILD_UPLOADFROM
# - SSHUSER
set -e
set -ex
PROJECT_ROOT="$(dirname "$(readlink -e "$0")")/.."
CONTRIB="$PROJECT_ROOT/contrib"
if [ -z "$SSHUSER" ]; then
SSHUSER=thomasv
@@ -15,8 +16,8 @@ fi
cd "$PROJECT_ROOT"
version=$(git describe --tags --abbrev=0)
echo $version
VERSION=$(python3 -c "import electrum; print(electrum.version.ELECTRUM_VERSION)")
echo "$VERSION"
if [ -z "$ELECBUILD_UPLOADFROM" ]; then
cd "$PROJECT_ROOT/dist"
@@ -30,9 +31,12 @@ fi
sftp -oBatchMode=no -b - "$SSHUSER@uploadserver" << !
cd electrum-downloads-airlock
-mkdir "$version"
-chmod 777 "$version"
cd "$version"
mput *
-mkdir "$VERSION"
-chmod 777 "$VERSION"
cd "$VERSION"
-mput *
-chmod 444 * # this prevents future re-uploads of same file
bye
!
"$CONTRIB/trigger_deploy.sh" "$SSHUSER" "$VERSION"