mirror of
https://github.com/odin-lang/Odin.git
synced 2025-12-29 01:14:40 +00:00
13 lines
310 B
Bash
13 lines
310 B
Bash
#!/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" |