mirror of
https://github.com/SchildiChat/schildichat-desktop.git
synced 2025-03-31 21:24:27 +02:00
Prepare prerelease
This commit is contained in:
parent
70a053f7d9
commit
8e8d874236
@ -10,12 +10,16 @@ set -e
|
|||||||
version="$1"
|
version="$1"
|
||||||
releasepath="$2"
|
releasepath="$2"
|
||||||
|
|
||||||
|
if [ -z "$GITHUB_API_TOKEN" ]; then
|
||||||
github_api_token=`cat ~/githubtoken`
|
github_api_token=`cat ~/githubtoken`
|
||||||
|
else
|
||||||
|
github_api_token="$GITHUB_API_TOKEN"
|
||||||
|
fi
|
||||||
release_notes_file="/tmp/scrn.md"
|
release_notes_file="/tmp/scrn.md"
|
||||||
|
|
||||||
owner=SchildiChat
|
owner=SchildiChat
|
||||||
repo=schildichat-desktop
|
repo=schildichat-desktop
|
||||||
target=master
|
target=lite
|
||||||
|
|
||||||
# Define variables
|
# Define variables
|
||||||
GH_API="https://api.github.com"
|
GH_API="https://api.github.com"
|
||||||
@ -37,7 +41,7 @@ json_string=`jq -n --arg tag "v$version" --arg target "$target" --arg body "$rel
|
|||||||
name: $tag,
|
name: $tag,
|
||||||
body: $body,
|
body: $body,
|
||||||
draft: true,
|
draft: true,
|
||||||
prerelease: false
|
prerelease: true
|
||||||
}'`
|
}'`
|
||||||
# echo "$json_string"
|
# echo "$json_string"
|
||||||
res=`echo "$json_string" | curl -sH "$AUTH" $GH_REPO/releases -d @-`
|
res=`echo "$json_string" | curl -sH "$AUTH" $GH_REPO/releases -d @-`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user