1
0
Fork 0
mirror of https://github.com/Luzifer/github-publish.git synced 2024-12-20 09:51:22 +00:00

Add description to release created

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2017-08-08 11:12:53 +02:00
parent e2639d2bad
commit e6836ba135
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E
2 changed files with 10 additions and 2 deletions

View file

@ -1,2 +1,2 @@
05e4977d541b2ef07c757acca912b7b58b379fb425eceb3a1f53c829a78a4aa4 docker2aci.sh
e1d40e89ab12c49c156f92ccc5ed03d1d816e6d69e5c4d86d064ddebb388c3ac golang.sh
7a138f44b13a04fbe55af6f9b50a84f365594024b131207040dee21bfb7248dc golang.sh

View file

@ -44,7 +44,15 @@ set -x
sha256sum ${REPO}_* > SHA256SUMS
# Create a drafted release
github-release release --user ${GHUSER} --repo ${REPO} --tag ${DEPLOYMENT_TAG} --name ${DEPLOYMENT_TAG} --draft || true
DESC="${VERSION}"
if [ -f History.md ]; then
sv=$(echo ${VERSION} | sed 's/^v//')
DESC=$(awk "/# ${sv}/{flag=1;next} /# /{flag=0} flag" History.md | head -n -1 | tail -n +2)
fi
github-release release --user ${GHUSER} --repo ${REPO} \
--tag ${DEPLOYMENT_TAG} --name ${DEPLOYMENT_TAG} \
--description ${DESC} --draft || true
# Upload build assets
for file in ${REPO}_* SHA256SUMS; do