File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed
Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ PROJECT_NAME='grails-spring-security'
2424RELEASE_TAG=$1
2525DOWNLOAD_LOCATION=" ${2:- downloads} "
2626DOWNLOAD_LOCATION=$( realpath " ${DOWNLOAD_LOCATION} " )
27+ CWD=$( pwd)
2728
2829if [ -z " ${RELEASE_TAG} " ]; then
2930 echo " Usage: $0 [release-tag] <optional download location>"
@@ -35,7 +36,6 @@ VERSION=${RELEASE_TAG#v}
3536ARTIFACTS_FILE=" ${DOWNLOAD_LOCATION} /${PROJECT_NAME} /PUBLISHED_ARTIFACTS"
3637CHECKSUMS_FILE=" ${DOWNLOAD_LOCATION} /${PROJECT_NAME} /CHECKSUMS"
3738SCRIPT_DIR=$( cd -- " $( dirname -- " ${BASH_SOURCE[0]} " ) " & > /dev/null && pwd )
38- CWD=$( pwd)
3939
4040if [ ! -f " ${ARTIFACTS_FILE} " ]; then
4141 echo " Required file ${ARTIFACTS_FILE} not found."
@@ -60,7 +60,7 @@ trap error ERR
6060cd " ${DOWNLOAD_LOCATION} "
6161
6262echo " Importing GPG key to independent GPG home ..."
63- gpg --homedir " ${GRAILS_GPG_HOME} " --import " ${SCRIPT_DIR} /../.. /KEYS"
63+ gpg --homedir " ${GRAILS_GPG_HOME} " --import " ${DOWNLOAD_LOCATION} /KEYS"
6464echo " ✅ GPG Key Imported"
6565
6666REPO_BASE_URL=" https://repository.apache.org/content/groups/staging"
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ shasum -a 512 -c "apache-${PROJECT_NAME}-${VERSION}-incubating-src.zip.sha512"
5050echo " ✅ Checksum Verified"
5151
5252echo " Importing GPG key to independent GPG home ..."
53- gpg --homedir " ${GRAILS_GPG_HOME} " --import " ${SCRIPT_DIR} /../.. /KEYS"
53+ gpg --homedir " ${GRAILS_GPG_HOME} " --import " ${DOWNLOAD_LOCATION} /KEYS"
5454echo " ✅ GPG Key Imported"
5555
5656echo " Verifying GPG signature..."
Original file line number Diff line number Diff line change @@ -38,6 +38,10 @@ cleanup() {
3838}
3939trap cleanup ERR
4040
41+ echo " Downloading KEYS file ..."
42+ curl -sSfLO " https://dist.apache.org/repos/dist/release/grails/KEYS"
43+ echo " ✅ KEYS Downloaded"
44+
4145echo " Downloading Artifacts ..."
4246" ${SCRIPT_DIR} /download-release-artifacts.sh" " ${RELEASE_TAG} " " ${DOWNLOAD_LOCATION} "
4347echo " ✅ Artifacts Downloaded"
You can’t perform that action at this time.
0 commit comments