use b2 upload-file instead of b2 sync

This commit is contained in:
Mikkel Hjortshoej
2020-04-15 19:38:50 +02:00
parent f229084baa
commit 5002b71670
2 changed files with 28 additions and 11 deletions
+11
View File
@@ -0,0 +1,11 @@
#!/bin/bash
bucket=$1
platform=$2
artifact=$2
now=$(date +'%Y-%m-%d')
filename="odin-$platform-nightly+$now.zip"
7z a "output/$filename" -r "$artifact"
b2 upload-file "$bucket" "$filename" "$filename"