Skip to content

Commit 703feae

Browse files
committed
update release script
1 parent 0ade3dc commit 703feae

1 file changed

Lines changed: 4 additions & 21 deletions

File tree

scripts/release.sh

Lines changed: 4 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -143,35 +143,18 @@ git push
143143
git push origin "$TAG_NAME"
144144

145145
# Create GitHub release
146-
print_info "Creating GitHub release..."
146+
print_info "Creating GitHub release with auto-generated notes..."
147147

148-
# Prepare release notes with auto-generated content
149-
RELEASE_NOTES="## $NEW_VERSION
150-
151-
This is the $NEW_VERSION release of subway.
152-
153-
### Installation
154-
155-
\`\`\`bash
156-
cargo install subway --version $NEW_VERSION
157-
\`\`\`
158-
159-
Or download the prebuilt binary from the assets below.
160-
161-
### What's Changed
162-
163-
Full changelog: https://github.com/AcalaNetwork/subway/compare/v${CURRENT_VERSION}...v${NEW_VERSION}"
164-
165-
# Create the release
148+
# Create the release with auto-generated notes
166149
if [ "$PRE_RELEASE" = true ]; then
167150
gh release create "$TAG_NAME" \
168151
--title "$TAG_NAME" \
169-
--notes "$RELEASE_NOTES" \
152+
--generate-notes \
170153
--prerelease
171154
else
172155
gh release create "$TAG_NAME" \
173156
--title "$TAG_NAME" \
174-
--notes "$RELEASE_NOTES"
157+
--generate-notes
175158
fi
176159

177160
print_info "Release $NEW_VERSION created successfully!"

0 commit comments

Comments
 (0)