1
0
mirror of https://github.com/Luzifer/github-publish.git synced 2024-09-19 07:52:56 +00:00

Add history to github release

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2021-08-28 21:58:21 +02:00
parent 2b13050ea0
commit be4e6ddeb9
Signed by: luzifer
GPG Key ID: 0066F03ED215AD7D
2 changed files with 7 additions and 3 deletions

View File

@ -1,2 +1,2 @@
05e4977d541b2ef07c757acca912b7b58b379fb425eceb3a1f53c829a78a4aa4 docker2aci.sh
b93ca8d05cc16d59d5ae117cbb389a82e505bb1f1b46f454ae8aac73bd4ffade golang.sh
e7662f4f1e9f7f0610000f4e91da49dfbc6355003490b25fb08f62d50e69a56d golang.sh

View File

@ -125,10 +125,14 @@ fi
if [[ ${DRAFT} == "true" ]]; then
step "Create a drafted release"
github-release release --user ${GHUSER} --repo ${REPO} --tag ${DEPLOYMENT_TAG} --name ${DEPLOYMENT_TAG} --draft || true
{
[ -f History.md ] && awk '/^#/ && ++c==2{exit}; /^#/f' History.md || echo ""
} | github-release release --user ${GHUSER} --repo ${REPO} --tag ${DEPLOYMENT_TAG} --name ${DEPLOYMENT_TAG} --description - --draft || true
else
step "Create a published release"
github-release release --user ${GHUSER} --repo ${REPO} --tag ${DEPLOYMENT_TAG} --name ${DEPLOYMENT_TAG} || true
{
[ -f History.md ] && awk '/^#/ && ++c==2{exit}; /^#/f' History.md || echo ""
} | github-release release --user ${GHUSER} --repo ${REPO} --tag ${DEPLOYMENT_TAG} --name ${DEPLOYMENT_TAG} --description - || true
fi
step "Upload build assets"