Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions bin/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,12 @@ if [ -d "$PACKAGE_DIR" ]; then

echo "🚀 Creating GitHub release..."

PREV_TAG=$(git tag --sort=-version:refname | grep -E '^v[0-9]' | sed -n '2p')
PREV_TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo "")

if [ -n "$PREV_TAG" ]; then
git log "$PREV_TAG..v$VERSION" --pretty=format:"- %s" > CHANGELOG.tmp
git log "$PREV_TAG..HEAD" --pretty=format:"- %s" > CHANGELOG.tmp
else
git log "v$VERSION" --pretty=format:"- %s" > CHANGELOG.tmp
git log --pretty=format:"- %s" > CHANGELOG.tmp
fi

gh release create "v$VERSION" \
Expand Down
2 changes: 1 addition & 1 deletion fastapi_startkit/uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading