Skip to content

Commit

Permalink
Fix script
Browse files Browse the repository at this point in the history
  • Loading branch information
bitbrain committed Jul 14, 2018
1 parent ff6b8f8 commit 58d238d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions deployment/after-deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,15 @@ git config --global user.name "Sir Lancelbot"
git clone --quiet --branch=master https://${GITHUB_TOKEN}@github.com/bitbrain/braingdx

# Replacing line endings in body
body=$(sed -E ':a;N;$!ba;s/\r{0,1}\n/\\n/g' <(echo $CH_TEXT))
body=$(sed -E ':a;N;$!ba;s/\r{0,1}\n/\\n/g' <(echo "$CH_TEXT"))
echo "Sending body: $body"
json='{"tag_name":"'$CH_VERSION'","target_commitish":"'$TRAVIS_BRANCH'","name":"Version '$CH_VERSION'","body":"'$body'","draft":false,"prerelease":false}'

echo "Sending JSON: $json"

curl -X POST \
-u bitbrain:$GITHUB_TOKEN \
-d $json https://api.github.com/repos/bitbrain/braingdx/releases
-d "$json" https://api.github.com/repos/bitbrain/braingdx/releases

mkdir cd $HOME/docs
cd $HOME/braingdx
Expand Down

0 comments on commit 58d238d

Please sign in to comment.