Skip to content

Commit

Permalink
chore: 배포 스크립트에서 패키지 태그 생성 작업 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
PENEKhun committed Jul 26, 2024
1 parent 96cdcda commit 15244b1
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,15 @@ check_jq_installed() {
fi
}

create_git_tag() {
git tag -a $VERSION -m "Release version $VERSION"
git push origin $VERSION
if [ $? -ne 0 ]; then
echo "Failed to create and push the tag."
exit 1
fi
}

get_latest_version() {
GITHUB_API_URL="https://api.github.com/repos/$REPO/releases/latest"
LATEST_VERSION=$(curl -s -H "Authorization: token $BOJ_STARTER_GIT_TOKEN" $GITHUB_API_URL | jq -r ".tag_name")
Expand Down Expand Up @@ -96,6 +105,7 @@ main() {
check_jq_installed
get_latest_version
get_version
create_git_tag
build_project
find_jar_file
create_release
Expand Down

0 comments on commit 15244b1

Please sign in to comment.