Here's how to make a new release of substrate-archive.
- Make a new branch, name it according to the template
release-vx.y.zfor consistency. - Update
Cargo.tomlinsubstrate-archiveandsubstrate-archive-backendwith the new version number.- 2a. Update version in
Cargo.tomlforpolkadot-archivewith new version number.
- 2a. Update version in
- Update the
CHANGELOGforsubstrate-archiveandpolkadot-archiveas 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
substrateandpolkadotcrates to their respective latest releases.diener update --polkadot --tag${latest_tag}`diener update --substrate --branchpolkadot-${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.zand 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.