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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user