From 5981e42aed56416ca71495e7973e2da8f03fbc24 Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Wed, 13 Aug 2014 12:58:59 +0200 Subject: [PATCH] ./build.sh upload build server artifacts --- build.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/build.sh b/build.sh index db54a6ed..2d7c0268 100755 --- a/build.sh +++ b/build.sh @@ -211,9 +211,14 @@ case "$1" in upload) tag=$(git describe) shopt -s nullglob - for f in *.tar.gz *.zip *.asc ; do - relup syncthing/syncthing "$tag" "$f" + dir=$(mktemp -d -t syncthing-release) + pushd $dir + curl -O 'http://build.syncthing.net/job/syncthing/lastSuccessfulBuild/artifact/*zip*/archive.zip' + unzip archive.zip + for f in archive/* ; do + echo relup syncthing/syncthing "$tag" "$f" done + popd ;; deps)