diff options
author | Patrick Spek <p.spek@tyil.nl> | 2019-11-02 19:05:03 +0100 |
---|---|---|
committer | Patrick Spek <p.spek@tyil.nl> | 2019-11-02 19:05:03 +0100 |
commit | c765ce9ebe81215fab21c021de147cc009ef61af (patch) | |
tree | 260e11bfacaaaca83c8605ec3f9544e113e8eeec /bin | |
parent | 6c39d09b0bef1e6641871e31568aca09ba1766c9 (diff) |
Upload checksums over FTP
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/release-ftp.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/bin/release-ftp.sh b/bin/release-ftp.sh index 8837a22..046b872 100755 --- a/bin/release-ftp.sh +++ b/bin/release-ftp.sh @@ -1,5 +1,6 @@ #! /usr/bin/env sh +readonly BASEDIR=$(CDPATH="" cd -- "$(dirname -- "$0")/.." && pwd -P) readonly DISTNAME="rakudo-star-$CI_COMMIT_REF_NAME" main() @@ -26,11 +27,15 @@ list_releases() upload_release() { + checksums=$(mktemp) + $BASEDIR/bin/mkchecksum.sh "work/release/$DISTNAME" > "$checksums" + lftp -e <<-EOI open $FTP_HOST:${FTP_PORT:-21}; user sftp://$FTP_USER $FTP_PASSWORD; cd ${FTP_DIR:-rakudo-star}; - put work/release/rakudo-star-$CI_COMMIT_REF_NAME; + put work/release/$DISTNAME; + put $checksums -o $DISTNAME.checksums.txt; bye; EOI } |