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 ..