Skip to content

Commit 3fc1cb4

Browse files
committed
Update scripted release not to be latest
1 parent 630b185 commit 3fc1cb4

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

bin/release.sh

+7-6
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ versions="WEB_APP_VERSION=${WEB_APP_VERSION}, SYNC_SERVICE_VERSION=${SYNC_SERVIC
2929
log "Starting release process. ${versions}"
3030

3131
# Create GitHub release
32-
log "Creating GitHub release..."
3332
if ! command -v gh &> /dev/null; then
3433
error "GitHub CLI (gh) is not installed. Please install it first."
3534
fi
@@ -54,18 +53,20 @@ if [[ -z "$RELEASE_NOTES" ]]; then
5453
fi
5554

5655
NEW_TAG="web-app-v${WEB_APP_VERSION}"
56+
log "Creating GitHub release ${NEW_TAG}..."
5757
gh release create "${NEW_TAG}" \
5858
--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}"
6065

6166
# Deploy to production
6267
log "Deploying to production..."
6368
./bin/deploy.sh "prod" || error "Failed to deploy to production"
6469

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-
6970
success "Release completed successfully!"
7071
success "- GitHub release created: ${RELEASE_URL}"
7172
success "- Deployed to production: https://sophistree.app"

0 commit comments

Comments
 (0)