Skip to content

Commit

Permalink
Merge pull request #62 from aws-ia/devel
Browse files Browse the repository at this point in the history
Version release
  • Loading branch information
kkvinjam authored Sep 18, 2024
2 parents 78ad994 + d832da2 commit bc6f3a6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions .project_automation/publication/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
PROJECT_PATH=${BASE_PATH}/project
PROJECT_TYPE_PATH=${BASE_PATH}/projecttype

echo "[STAGE: Publication]"
VERSION=$(cat VERSION)
echo $VERSION
BRANCH=main
EXISTING_GIT_VERSION="$(git tag -l)"
HUGO_VERSION=$(hugo version)
Expand All @@ -16,6 +19,15 @@ VERSION=$(cat VERSION)
BASE_URL="this would be the path to s3 bucket/${REPO_NAME}/"
S3_URI="s3://aws-abi/guide/${REPO_NAME}/"


if [[ $(echo $EXISTING_GIT_VERSION | grep $VERSION) ]]
then
echo "version exists skipping release creation hint: Bump version in VERSION file"
else
echo "creating new version"
gh release create ${VERSION} --target ${BRANCH} --generate-notes
fi

print_header() {
printf "\n\n%s\n" "$*"
}
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v0.0.0
v1.0.0

0 comments on commit bc6f3a6

Please sign in to comment.