Automatically add release notes

This commit is contained in:
Pig Fang 2019-05-03 16:06:16 +08:00
parent 51c9bac405
commit d8aca0b8d5
2 changed files with 7 additions and 1 deletions

View File

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

View File

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