diff options
Diffstat (limited to 'ci/azure/linux_script')
| -rwxr-xr-x | ci/azure/linux_script | 10 |
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 |
