Files
monica/scripts/ci/upload-release-asset.sh
2020-03-23 20:21:35 +01:00

11 lines
274 B
Bash
Executable File

#!/bin/sh
file=$1
release=$2
curl -H "Authorization: token $GITHUB_TOKEN" \
-H "Content-Type: application/octet-stream" \
-X POST \
--data-binary @"$file" \
"https://uploads.github.com/repos/monicahq/monica/releases/$release/assets?name=$(basename $file)"