Skip to content

Commit

Permalink
Dev: Release Script Fix Key Arg (apache#4919)
Browse files Browse the repository at this point in the history
Default release repo is apache
Use keyId when passed in release script
  • Loading branch information
RussellSpitzer authored May 31, 2022
1 parent 5d0f530 commit 01e640c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dev/source-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ usage () {
}

# Default repository remote name
remote="origin"
remote="apache"

while getopts "v:r:k:g:d" opt; do
case "${opt}" in
Expand Down Expand Up @@ -112,7 +112,7 @@ tarball=$tag.tar.gz
git archive $release_hash --worktree-attributes --prefix $tag/ -o $projectdir/$tarball

echo "Signing the tarball..."
[[ -z "$keyid" ]] && keyopt="-u $keyid"
[[ -n "$keyid" ]] && keyopt="-u $keyid"
gpg $keyopt --armor --output ${projectdir}/${tarball}.asc --detach-sig ${projectdir}/$tarball
shasum -a 512 $tarball > ${projectdir}/${tarball}.sha512

Expand Down

0 comments on commit 01e640c

Please sign in to comment.