aboutsummaryrefslogtreecommitdiff
path: root/ci/azure/linux_script
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2019-03-20 23:19:18 -0400
committerAndrew Kelley <andrew@ziglang.org>2019-03-20 23:19:18 -0400
commitbf4701562cff5f26cb119351a584fc59145a747a (patch)
tree09834e9a8e8127fd61ee22c5f5f0a0592cbb7077 /ci/azure/linux_script
parentb7fb63d6966cc46da19eda32f99ede5177bbdf4c (diff)
downloadzig-bf4701562cff5f26cb119351a584fc59145a747a.tar.gz
zig-bf4701562cff5f26cb119351a584fc59145a747a.zip
ci: add FreeBSD to download page
Diffstat (limited to 'ci/azure/linux_script')
-rwxr-xr-xci/azure/linux_script10
1 files changed, 10 insertions, 0 deletions
diff --git a/ci/azure/linux_script b/ci/azure/linux_script
index ab9dacd46a..effcbd2992 100755
--- a/ci/azure/linux_script
+++ b/ci/azure/linux_script
@@ -34,6 +34,16 @@ if [ "${BUILD_REASON}" != "PullRequest" ]; then
SHASUM=$(sha256sum $ARTIFACTSDIR/$TARBALL | cut '-d ' -f1)
BYTESIZE=$(wc -c < $ARTIFACTSDIR/$TARBALL)
+
+ JSONFILE="linux-$GITBRANCH.json"
+ touch $JSONFILE
+ echo "{\"tarball\": \"$TARBALL\"," >>$JSONFILE
+ echo "\"shasum\": \"$SHASUM\"," >>$JSONFILE
+ echo "\"size\": \"$BYTESIZE\"}" >>$JSONFILE
+
+ s3cmd put -P "$JSONFILE" "s3://ziglang.org/builds/$JSONFILE"
+ s3cmd put -P "$JSONFILE" "s3://ziglang.org/builds/linux-$VERSION.json"
+
# `set -x` causes these variables to be mangled.
# See https://developercommunity.visualstudio.com/content/problem/375679/pipeline-variable-incorrectly-inserts-single-quote.html
set +x