mirror of
https://github.com/Luzifer/github-publish.git
synced 2024-12-20 09:51:22 +00:00
Add history to github release
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
2b13050ea0
commit
be4e6ddeb9
2 changed files with 7 additions and 3 deletions
|
@ -1,2 +1,2 @@
|
|||
05e4977d541b2ef07c757acca912b7b58b379fb425eceb3a1f53c829a78a4aa4 docker2aci.sh
|
||||
b93ca8d05cc16d59d5ae117cbb389a82e505bb1f1b46f454ae8aac73bd4ffade golang.sh
|
||||
e7662f4f1e9f7f0610000f4e91da49dfbc6355003490b25fb08f62d50e69a56d golang.sh
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue