Skip to content

Commit

Permalink
Add nicer changelog to plutus release notes (#6821)
Browse files Browse the repository at this point in the history
  • Loading branch information
zeme-wana authored Feb 4, 2025
1 parent 66aed87 commit 8c46bbc
Showing 1 changed file with 23 additions and 1 deletion.
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

0 comments on commit 8c46bbc

Please sign in to comment.