Skip to content

Commit

Permalink
Flip the switch on SHA256
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroen committed Oct 16, 2024
1 parent 477f1d5 commit da42088
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ if [ "$PKGTYPE" == "failure" ]; then
fi

if [ -f "$FILE" ]; then
MD5SUM=$(openssl dgst -md5 $FILE | awk '{print $2}')
echo "Deploying: $FILE with md5: $MD5SUM"
SHASUM=$(openssl dgst -sha512 $FILE | awk '{print $2}')
echo "Deploying: $FILE with sha: $SHASUM"
else
echo "ERROR: file $FILE not found!"
exit 1
Expand Down Expand Up @@ -127,7 +127,7 @@ upload_package_file(){
-H "Builder-Windevel: ${WINDOWS_DEVEL_STATUS}" \
-H "Builder-Buildurl: https://github.com/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}" \
-H 'Expect:' \
"${CRANLIKEURL}/${PACKAGE}/${VERSION}/${PKGTYPE}/${MD5SUM}" &&\
"${CRANLIKEURL}/${PACKAGE}/${VERSION}/${PKGTYPE}/${SHASUM}" &&\
echo " === Complete! === " &&\
exit 0
}
Expand Down

0 comments on commit da42088

Please sign in to comment.