Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add nicer changelog to plutus release notes #6821

Merged
merged 4 commits into from
Feb 4, 2025
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
24 changes: 23 additions & 1 deletion scripts/interactive-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -217,12 +217,34 @@ check-and-publish-gh-release() {
}


generate-release-notes() {
local CHANGELOG_PACKAGES=(
"plutus-core"
"plutus-ledger-api"
"plutus-tx"
"plutus-tx-plugin"
"plutus-executables"
)
for PACKAGE in "${CHANGELOG_PACKAGES[@]}"; do
echo "# $PACKAGE"
local CHANGELOG="$(sed -n "/# $VERSION —/,/changelog-/p" $PACKAGE/CHANGELOG.md | sed '1d;$d')"
echo
echo "${CHANGELOG:="No changes."}"
echo
done
local PREV_VERSION=$(gh release list --json tagName --jq ".[0].tagName")
echo "**Full Changelog**: https://github.com/IntersectMBO/plutus/compare/$PREV_VERSION...$VERSION"
}


publish-gh-release() {
for EXEC in uplc pir plc; do
nix build ".#hydraJobs.x86_64-linux.musl64.ghc96.$EXEC"
upx -9 ./result/bin/$EXEC -o $EXEC-x86_64-linux-ghc96 --force-overwrite
done
gh release create $VERSION --title $VERSION --generate-notes --latest
local NOTES_FILE=$(mktemp)
generate-release-notes > $NOTES_FILE
gh release create $VERSION --title $VERSION --notes-file $NOTES_FILE --latest
gh release upload $VERSION {uplc,plc,pir}-x86_64-linux-ghc96 --clobber
tell "Published the release"
}
Expand Down