@@ -29,7 +29,6 @@ versions="WEB_APP_VERSION=${WEB_APP_VERSION}, SYNC_SERVICE_VERSION=${SYNC_SERVIC
29
29
log " Starting release process. ${versions} "
30
30
31
31
# Create GitHub release
32
- log " Creating GitHub release..."
33
32
if ! command -v gh & > /dev/null; then
34
33
error " GitHub CLI (gh) is not installed. Please install it first."
35
34
fi
@@ -54,18 +53,20 @@ if [[ -z "$RELEASE_NOTES" ]]; then
54
53
fi
55
54
56
55
NEW_TAG=" web-app-v${WEB_APP_VERSION} "
56
+ log " Creating GitHub release ${NEW_TAG} ..."
57
57
gh release create " ${NEW_TAG} " \
58
58
--title " Web App Release v${WEB_APP_VERSION} " \
59
- --notes " ${RELEASE_NOTES} " || error " Failed to create GitHub release"
59
+ --notes " ${RELEASE_NOTES} " || error " Failed to create GitHub release" \
60
+ --latest=false
61
+
62
+ REPO_URL=
$( git config --get remote.origin.url | sed ' s/\.git$//' | sed ' s|[email protected] :|https://github.com/|' )
63
+ RELEASE_URL=" ${REPO_URL} /releases/tag/${NEW_TAG} "
64
+ success " GitHub release created: ${RELEASE_URL} "
60
65
61
66
# Deploy to production
62
67
log " Deploying to production..."
63
68
./bin/deploy.sh " prod" || error " Failed to deploy to production"
64
69
65
- # Get the repository URL from git config
66
- REPO_URL=
$( git config --get remote.origin.url | sed ' s/\.git$//' | sed ' s|[email protected] :|https://github.com/|' )
67
- RELEASE_URL=" ${REPO_URL} /releases/tag/${NEW_TAG} "
68
-
69
70
success " Release completed successfully!"
70
71
success " - GitHub release created: ${RELEASE_URL} "
71
72
success " - Deployed to production: https://sophistree.app"
0 commit comments