Skip to content
This repository has been archived by the owner on Apr 17, 2020. It is now read-only.

Commit

Permalink
Creating GitHub release (#106)
Browse files Browse the repository at this point in the history
Co-authored-by: harold-velez <[email protected]>
  • Loading branch information
haroldvz and harold-velez authored Apr 13, 2020
1 parent ae63cda commit 09d7089
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion ps_spec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,22 @@ stages:
PKGNAME=$(node -e 'console.log(require("./package.json").name)')
PKGVERSION=$(node -e 'console.log(require("./package.json").version)')
#V_VERSION=v$PKGVERSION
V_VERSION=v$PKGVERSION
WORDCOUNT=$(npm view "${PKGNAME}@${PKGVERSION}" | wc -c)
#git tag -a $V_VERSION -m "$PKGNAME release $V_VERSION" HEAD
# Release section
curl -fsSL https://github.com/github/hub/raw/master/script/get | bash -s 2.14.2
GITHUB_TOKEN=$ALPS_GH_TOKEN
echo "Continuous Delivery release for ${PKGNAME}@${PKGVERSION}" > release_notes.txt
echo "CREATING RELEASE FOR ${PKGNAME}@${PKGVERSION}"
# Create a GitHub Release from master using release notes from release_notes.txt file
# See: https://hub.github.com/hub-release.1.html
bin/hub release create -F release_notes.txt -t $CODEBUILD_SOURCE_VERSION $V_VERSION
# End release section
npm install
Expand Down

0 comments on commit 09d7089

Please sign in to comment.