Skip to content

Commit

Permalink
update release script
Browse files Browse the repository at this point in the history
  • Loading branch information
clowwindy committed Jan 7, 2015
1 parent 770b5c5 commit 8589efc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packaging/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ fi

VERSION=$1

git tag $1
git push origin $1
./autogen.sh && ./configure && make dist

API_JSON=$(printf '{"tag_name": "%s","target_commitish": "master","name": "%s","body": "","draft": false,"prerelease": false}' $VERSION $VERSION)
ID=`curl -v --data "$API_JSON" https://api.github.com/repos/clowwindy/ChinaDNS/releases?access_token=$GITHUB_TOKEN | python -c 'import json,sys;print json.load(sys.stdin)["id"]'`

Expand Down

0 comments on commit 8589efc

Please sign in to comment.