Here's how to make a new release of substrate-archive
.
- Make a new branch, name it according to the template
release-vx.y.z
for consistency. - Update
Cargo.toml
insubstrate-archive
andsubstrate-archive-backend
with the new version number.- 2a. Update version in
Cargo.toml
forpolkadot-archive
with new version number.
- 2a. Update version in
- Update the
CHANGELOG
forsubstrate-archive
andpolkadot-archive
as specified here. - Compile tracing-enabled wasm for westend, kusama, and polkadot for versions that are missing in the
wasm_tracing/
folder.- Compilation steps may be found here
- Make a PR against master with these changes
- Once the PR to master is merged, we have to prepare the release branch.
- 3a. Update all references to
substrate
andpolkadot
crates to their respective latest releases.diener update --polkadot --tag
${latest_tag}`diener update --substrate --branch
polkadot-${latest_tag}`
- 3b. Run all tests:
TEST_DATABASE_URL="postgres://localhost:5432/archive cargo test --all
.- These tests will also be run under CI on branch push.
- 3a. Update all references to
- Tag the release branch with
git tag vx.y.z
and push the tags withgit push --tags
.- This will trigger the automated release CI which will build the binaries. It can take a bit for this to finish, (~1 hour), but once it's done it will create the draft release from the changelog, and upload the artifacts.
- Review the draft release in the github UI.
- Get a review of the draft release from the team.
- Publish the release from github UI.
- Signal to devops that there is a new release available.