23 lines
501 B
Bash
Executable File
23 lines
501 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
name="$(git describe --tags)"
|
|
path="@snapshot/dragonblocks_alpha-$name"
|
|
ref="$(git tag --points-at HEAD)"
|
|
release="1"
|
|
|
|
if [[ "$ref" == "" ]]; then
|
|
ref="$(git rev-parse --short HEAD)"
|
|
release="0"
|
|
fi
|
|
|
|
curl -f -i -X POST -H "Content-Type: multipart/form-data" \
|
|
-F "secret=$SECRET" \
|
|
-F "name=$name" \
|
|
-F "ref=$ref" \
|
|
-F "release=$release" \
|
|
-F "Linux=$path.zip" \
|
|
-F "Win32=$path-win32.zip" \
|
|
-F "Win64=$path-win64.zip" \
|
|
https://elidragon.tk/dragonblocks_alpha/upload.php
|