From d8aca0b8d503fc36a1316a833dd778909e8cfbe0 Mon Sep 17 00:00:00 2001 From: Pig Fang Date: Fri, 3 May 2019 16:06:16 +0800 Subject: [PATCH] Automatically add release notes --- .travis.yml | 7 ++++++- scripts/release.sh | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index b727d220..670bd579 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,7 +16,12 @@ deploy: api_key: $GITHUB_TOKEN file: blessing-skin-server-$TRAVIS_TAG.zip name: $TRAVIS_TAG - draft: true skip_cleanup: true on: tags: true + +after_deploy: +- curl -s -o github-release.tar.bz2 -L https://github.com/aktau/github-release/releases/download/v0.7.2/linux-amd64-github-release.tar.bz2 +- tar -xf github-release.tar.bz2 +- export CHANGELOG=$(cat resources/misc/changelogs/en/$RELEASE_TAG.md && echo "\n---\n" && cat resources/misc/changelogs/zh_CN/$RELEASE_TAG.md) +- ./bin/linux/amd64/github-release -v edit -u bs-community -r blessing-skin-server -t $RELEASE_TAG -d $CHANGELOG diff --git a/scripts/release.sh b/scripts/release.sh index 6355f880..cc0c4203 100755 --- a/scripts/release.sh +++ b/scripts/release.sh @@ -32,3 +32,4 @@ git add . git commit -m "Publish" git remote add origin https://blessing-skin:$AZURE_TOKEN@dev.azure.com/blessing-skin/Blessing%20Skin%20Server/_git/Blessing%20Skin%20Server git push -f origin master +cd ..