Skip to content
Merged
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
11 changes: 5 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -169,23 +169,22 @@ jobs:
# Generate checksums
cd assets && sha256sum * > checksums.txt 2>/dev/null || true

# Generate release notes
# Generate release notes via git-cliff (nightly and stable)
cd ..
if [ "$IS_NIGHTLY" = "true" ]; then
LAST_TAG=$(git tag --list "nightly-*" --sort=-version:refname | head -1)
if [ -n "$LAST_TAG" ]; then
git log "$LAST_TAG"..HEAD --oneline --no-merges --first-parent | \
grep -Ei '^[a-f0-9]+ (feat|fix|perf|security)(\([^)]+\))?:' | \
grep -Eiv '^[a-f0-9]+ fix\((test|ci|build|chore|docs|style|refactor)\):' | \
sed 's/^/- /' > notes.md
npx git-cliff@latest "$LAST_TAG"..HEAD --strip all > notes.md.tmp || true
awk '!seen[$0]++' notes.md.tmp > notes.md && rm -f notes.md.tmp
[ -s notes.md ] || echo "- No user-facing changes" > notes.md
else
echo "Initial nightly build" > notes.md
fi
else
PREV_TAG=$(git tag --list "v[0-9]*" --sort=-version:refname | grep -v "v${VERSION}" | head -1)
npx git-cliff@latest ${PREV_TAG:+"$PREV_TAG"..HEAD} --tag "v${VERSION}" \
--ignore-tags "nightly-.*" --strip all > notes.md || true
--ignore-tags "nightly-.*" --strip all > notes.md.tmp || true
awk '!seen[$0]++' notes.md.tmp > notes.md && rm -f notes.md.tmp
if [ ! -s notes.md ]; then
echo "See [CHANGELOG.md](https://github.com/Orinks/PortkeyDrop/blob/main/CHANGELOG.md) for full release notes." > notes.md
fi
Expand Down