Important Don't forget to replace
${version}
by your real version like0.1.3
!
-
Clean build dirs
cargo clean
-
Ensure build
cargo build --release
and testscargo test --target aarch64-apple-darwin
pass (adapt--target
value to fit your machine's architecture) -
Ensure you are in a clean and pushed Git state
-
Find & replace all occurrences of Regex
^version = "[^"]+"
in allCargo.toml
files toversion = "${version}"
-
Find & replace all occurrences of Regex
^substreams-ethereum(-[^ =]+)?\s*=\s*\{\s*version\s*=\s*"[^"]+"
in allCargo.toml
files tosubstreams-ethereum$1 = { version = "${version}"
-
Update the CHANGELOG.md to update the
## Next
header to become## [${version}](https://github.com/streamingfast/substreams-ethereum/releases/tag/v${version})
-
Ensure that Keybase is running and logged in
-
Ensure that
cargo login
has been done in your terminal -
Ensure build
cargo build --release
and testscargo test --target aarch64-apple-darwin
still pass (adapt--target
value to fit your machine's architecture) -
Commit everything with message
Preparing release of ${version}
. -
./bin/release.sh -f v${version}
-
If everything goes well,
crates.io
will be update and Git should be in a synced state (the release script does agit push
of the branch and the tag). -
Go to https://github.com/streamingfast/substreams-ethereum/releases and edit the draft release named
v${version}
. -
Update the release notes, use content of section
## [v${version}]
in CHANGELOG.md, edit GitHub release and paste content before commits listing, keep both:## Changelog <Content from 'docs/release-notes/change-log.md' here> ### Commits <Auto-generated commits listing>
-
Publish the draft release (Important Don't forget this step otherwise release will not be published out!)
-
Update the CHANGELOG.md adding
## Next
header on top of latest released section. -
Commit everything with message
Preparing next version
. -
Git push again (
git push origin develop
)
You can then update the https://github.com/streamingfast/substreams-template with the latest.
Need any help? Reach out!