Skip to content

Commit

Permalink
tools: update release.sh to work with new website
Browse files Browse the repository at this point in the history
now need to specify "nodejs" or "iojs", also remove .gpg file

PR-URL: #2623
Reviewed-By: jbergstroem - Johan Bergström <[email protected]>

cherry-picked by @rvagg to v3.x, s/nodejs/iojs/
  • Loading branch information
rvagg committed Sep 2, 2015
1 parent 0a0577c commit 3aa6bbb
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions tools/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

set -e

webhost=iojs.org
webhost=direct.iojs.org
webuser=dist
promotablecmd=dist-promotable
promotecmd=dist-promote
Expand Down Expand Up @@ -80,7 +80,7 @@ function sign {
echo "GPG key for \"${version}\" tag is not yours, cannot sign"
fi

shapath=$(ssh ${webuser}@${webhost} $signcmd $version)
shapath=$(ssh ${webuser}@${webhost} $signcmd iojs $version)

if ! [[ ${shapath} =~ ^/.+/SHASUMS256.txt$ ]]; then
echo 'Error: No SHASUMS file returned by sign!'
Expand All @@ -98,7 +98,6 @@ function sign {
scp ${webuser}@${webhost}:${shapath} ${tmpdir}/${shafile}

gpg --default-key $gpgkey --clearsign ${tmpdir}/${shafile}
gpg --default-key $gpgkey --armor --export --output ${tmpdir}/${shafile}.gpg

echo "Wrote to ${tmpdir}/"

Expand All @@ -118,7 +117,7 @@ function sign {
fi

if [ "X${yorn}" == "Xy" ]; then
scp ${tmpdir}/${shafile} ${tmpdir}/${shafile}.asc ${tmpdir}/${shafile}.gpg ${webuser}@${webhost}:${shadir}/
scp ${tmpdir}/${shafile} ${tmpdir}/${shafile}.asc ${webuser}@${webhost}:${shadir}/
break
fi
done
Expand All @@ -145,7 +144,7 @@ fi

echo -e "\n# Checking for releases ..."

promotable=$(ssh ${webuser}@${webhost} $promotablecmd)
promotable=$(ssh ${webuser}@${webhost} $promotablecmd iojs)

if [ "X${promotable}" == "X" ]; then
echo "No releases to promote!"
Expand Down Expand Up @@ -178,7 +177,7 @@ for version in $versions; do

echo -e "\n# Promoting ${version}..."

ssh ${webuser}@${webhost} $promotecmd $version
ssh ${webuser}@${webhost} $promotecmd iojs $version

sign $version

Expand Down

0 comments on commit 3aa6bbb

Please sign in to comment.