Use Claude Code to generate release notes in deploy script
Calls claude.exe --print with git log to generate professional release notes. Falls back to basic git log format if unavailable. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
0c43e3e250
commit
f9d9333bd7
36
deploy.sh
36
deploy.sh
@ -213,8 +213,39 @@ else
|
||||
CHANGELOG=$(git log --oneline -20 2>/dev/null || echo "Initial release")
|
||||
fi
|
||||
|
||||
# Format release notes
|
||||
RELEASE_NOTES="## $APP_NAME $APP_VERSION
|
||||
# Use Claude Code to generate release notes
|
||||
echo_info "Calling Claude Code to generate release notes..."
|
||||
|
||||
CLAUDE_PROMPT="Generate release notes for $APP_NAME version $APP_VERSION.
|
||||
|
||||
Git commits since last release:
|
||||
$CHANGELOG
|
||||
|
||||
Write a brief, professional release notes summary. Format as markdown with:
|
||||
- A short summary paragraph (2-3 sentences) describing the main changes
|
||||
- A bullet list of key changes (group related commits)
|
||||
- Keep it concise, no more than 10 bullet points
|
||||
|
||||
Do NOT include installation instructions or download links.
|
||||
Output ONLY the release notes content, no explanations."
|
||||
|
||||
# Call claude.exe with the prompt (--print outputs only the response)
|
||||
CLAUDE_NOTES=$(echo "$CLAUDE_PROMPT" | claude.exe --print 2>/dev/null || echo "")
|
||||
|
||||
if [ -n "$CLAUDE_NOTES" ]; then
|
||||
echo_info "Claude generated release notes successfully"
|
||||
RELEASE_NOTES="$CLAUDE_NOTES
|
||||
|
||||
---
|
||||
|
||||
### Installation
|
||||
1. Download \`$ZIP_NAME\`
|
||||
2. Extract to desired location
|
||||
3. Run \`$APP_NAME-$APP_VERSION.exe\`
|
||||
"
|
||||
else
|
||||
echo_warn "Claude Code not available, using basic release notes"
|
||||
RELEASE_NOTES="## $APP_NAME $APP_VERSION
|
||||
|
||||
### Changes
|
||||
\`\`\`
|
||||
@ -226,6 +257,7 @@ $CHANGELOG
|
||||
2. Extract to desired location
|
||||
3. Run \`$APP_NAME-$APP_VERSION.exe\`
|
||||
"
|
||||
fi
|
||||
|
||||
echo_info "Release notes generated"
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user