Skip to content

Commit a150e22

Browse files
remove-ai-gh-release
1 parent 6cf779d commit a150e22

File tree

1 file changed

+7
-30
lines changed

1 file changed

+7
-30
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -106,35 +106,12 @@ jobs:
106106
# Extract everything from "# Releases" onward and replace with "# Changelog"
107107
CHANGELOG=$(echo "$PR_BODY" | sed -n '/^# Releases/,$p' | sed '1s/^# Releases/# Changelog/')
108108
109-
# Generate highlights using Claude
110-
HIGHLIGHTS=$(curl -s -K <(echo "header = \"x-api-key: $ANTHROPIC_API_KEY\"") \
111-
https://api.anthropic.com/v1/messages \
112-
-H "Content-Type: application/json" \
113-
-H "anthropic-version: 2023-06-01" \
114-
-d "$(jq -n \
115-
--arg changelog "$CHANGELOG" \
116-
'{
117-
model: "claude-sonnet-4-20250514",
118-
max_tokens: 1024,
119-
messages: [{
120-
role: "user",
121-
content: "Based on this changelog, write a Highlights section for a GitHub release. Focus on the most impactful user-facing changes. Use markdown with ## headers for major features and bullet points for details. Do not include a top-level heading - start directly with the content.\n\nChangelog:\n\($changelog)"
122-
}]
123-
}')" | jq -r '.content[0].text')
124-
125-
RELEASE_NOTES="# Highlights
126-
127-
${HIGHLIGHTS}
128-
129-
${CHANGELOG}"
130-
131-
# Pin the release tag to the exact commit that was built and published.
132-
# The app token ensures the release:published event triggers the
133-
# downstream Vercel production deploy workflow.
134-
gh release create "v${VERSION}" \
135-
--target "${{ github.sha }}" \
136-
--title "${RELEASE_DATE}" \
137-
--notes "$RELEASE_NOTES"
109+
# Pin the release tag to the exact commit that was built and published.
110+
# The app token ensures the release:published event triggers the
111+
# downstream Vercel production deploy workflow.
112+
gh release create "v${VERSION}" \
113+
--target "${{ github.sha }}" \
114+
--title "${RELEASE_DATE}" \
115+
--notes "$CHANGELOG"
138116
env:
139117
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
140-
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}

0 commit comments

Comments
 (0)