aboutsummaryrefslogtreecommitdiff
path: root/ci/upload_create_nightly.sh
blob: 754b9b87c4f9ae9d788af860790c9857b14f7e22 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash

bucket=$1
platform=$2
artifact=$3

now=$(date +'%Y-%m-%d')
filename="odin-$platform-nightly+$now.zip"

echo "Creating archive $filename from $artifact and uploading to $bucket"

7z a -bd "output/$filename" -r "$artifact"
b2 upload-file --noProgress "$bucket" "output/$filename" "nightly/$filename"