Checking for the upload location variable being set in CI

* This helps downstream forks to run CI without seeing a false negative in the
  mac release build due to being unable to upload the final package to the
  server.
This commit is contained in:
baldurk
2022-07-15 13:19:53 +01:00
parent c3a6a8a9d6
commit 1494a8f71e
+1 -1
View File
@@ -334,4 +334,4 @@ jobs:
echo '|1|if7jyhkGD/xNbs/bfYSZ4zcgIoo=|gjhyr71exVKt7rNtMly68VccvLk= ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBPhCdt25vFMUQ63wTBxKLCZY1Ax+F9Y+SSusjuG6b4xtdVQ1lo3FqHnyLtsvYja0R0RiwTEob6TDrr/j7rjR96M=' >> $HOME/.ssh/known_hosts
ls -lR $HOME/.ssh
cat $HOME/.ssh/known_hosts
lftp sftp://"${UPLOADLOCATION}" -e "cd upload; put ${FNAME}; bye"
if [ ! -z "${UPLOADLOCATION}" ]; then lftp sftp://"${UPLOADLOCATION}" -e "cd upload; put ${FNAME}; bye"; fi