GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — tools: update release.sh to work with new website · nodejs/node@cad0397

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • tools
    • release.sh
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎tools/release.sh‎

Copy file name to clipboardExpand all lines: tools/release.sh
+5-6Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
set -e
1010

11-
webhost=nodejs.org
11+
webhost=direct.nodejs.org
1212
webuser=dist
1313
promotablecmd=dist-promotable
1414
promotecmd=dist-promote
@@ -80,7 +80,7 @@ function sign {
8080
echo "GPG key for \"${version}\" tag is not yours, cannot sign"
8181
fi
8282

83-
shapath=$(ssh ${webuser}@${webhost} $signcmd $version)
83+
shapath=$(ssh ${webuser}@${webhost} $signcmd nodejs $version)
8484

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

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

103102
echo "Wrote to ${tmpdir}/"
104103

@@ -118,7 +117,7 @@ function sign {
118117
fi
119118

120119
if [ "X${yorn}" == "Xy" ]; then
121-
scp ${tmpdir}/${shafile} ${tmpdir}/${shafile}.asc ${tmpdir}/${shafile}.gpg ${webuser}@${webhost}:${shadir}/
120+
scp ${tmpdir}/${shafile} ${tmpdir}/${shafile}.asc ${webuser}@${webhost}:${shadir}/
122121
break
123122
fi
124123
done
@@ -145,7 +144,7 @@ fi
145144

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

148-
promotable=$(ssh ${webuser}@${webhost} $promotablecmd)
147+
promotable=$(ssh ${webuser}@${webhost} $promotablecmd nodejs)
149148

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

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

181-
ssh ${webuser}@${webhost} $promotecmd $version
180+
ssh ${webuser}@${webhost} $promotecmd nodejs $version
182181

183182
sign $version
184183

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.