Skip to content

Commit bac542f

Browse files
committed
Remove check for signing key
This will be passed by environment variable
1 parent 6e49d4f commit bac542f

1 file changed

Lines changed: 1 addition & 24 deletions

File tree

github-actionify.sh

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ gitactionSettingsFile=$gitactionDir/settings.xml
2222
gitactionNotifyScript=$gitactionDir/notify.sh
2323
credentialsDir=$HOME/.scijava/credentials
2424
varsFile=$credentialsDir/vars
25-
signingKeySourceFile=$credentialsDir/scijava-ci-signing.asc.enc
26-
signingKeyDestFile=$gitactionDir/signingkey.asc
2725
pomMinVersion='17.1.1'
2826
tmpFile=gitaction.tmp
2927

@@ -270,30 +268,9 @@ EOL
270268
test -f README.md && cat README.md >>"$tmpFile"
271269
update README.md 'GitHub Action: add badge to README.md'
272270
fi
273-
274-
# copy the encrypted signing key
275-
# This assumes you have the encrypted signing key locally and will set the encryption key and iv as encrypted
276-
# environment variables in your repository or organization
277-
if [ -f "$signingKeySourceFile" ]
278-
then
279-
info "Copying $signingKeyDestFile"
280-
if [ -z "$EXEC" ]
281-
then
282-
rm -f "$signingKeyDestFile.enc"
283-
cp "$signingKeySourceFile" "$signingKeyDestFile.enc"
284-
git add "$signingKeyDestFile.enc"
285-
git commit -m "GitHub Action: add encrypted GPG signing keypair"
286-
fi
287-
else
288-
warn "No $signingKeySourceFile found. GitHub Action will not be able to do GPG signing!"
289-
fi
290271
}
291272

292-
test -d "$credentialsDir" ||
293-
die "This script requires configuration stored in $credentialsDir,\n" \
294-
"including $varsFile for needed environment variables,\n" \
295-
"and $signingKeySourceFile for signing of artifacts.\n" \
296-
"Please contact a SciJava administrator to receive a copy of this content."
273+
echo "Note that CI deployment requires additional configuration. Please contact a SciJava administrator for more information."
297274

298275
# call check method to verify prerequisites
299276
check git sed cut perl xmllint

0 commit comments

Comments
 (0)