mirror of
https://github.com/Luzifer/github-publish.git
synced 2024-11-12 16:12:53 +00:00
Add description to release created
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
e2639d2bad
commit
e6836ba135
2 changed files with 10 additions and 2 deletions
|
@ -1,2 +1,2 @@
|
||||||
05e4977d541b2ef07c757acca912b7b58b379fb425eceb3a1f53c829a78a4aa4 docker2aci.sh
|
05e4977d541b2ef07c757acca912b7b58b379fb425eceb3a1f53c829a78a4aa4 docker2aci.sh
|
||||||
e1d40e89ab12c49c156f92ccc5ed03d1d816e6d69e5c4d86d064ddebb388c3ac golang.sh
|
7a138f44b13a04fbe55af6f9b50a84f365594024b131207040dee21bfb7248dc golang.sh
|
||||||
|
|
10
golang.sh
10
golang.sh
|
@ -44,7 +44,15 @@ set -x
|
||||||
sha256sum ${REPO}_* > SHA256SUMS
|
sha256sum ${REPO}_* > SHA256SUMS
|
||||||
|
|
||||||
# Create a drafted release
|
# 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
|
# Upload build assets
|
||||||
for file in ${REPO}_* SHA256SUMS; do
|
for file in ${REPO}_* SHA256SUMS; do
|
||||||
|
|
Loading…
Reference in a new issue