Change the version then run the command in the parent folder.
# set the version
version="0.4.2"
# update the toml files
sed -i '0,/^version = ".*"/s//version = "'${version}'"/' seedelf-contracts/aiken.toml
sed -i '0,/^version = ".*"/s//version = "'${version}'"/' seedelf-cli/Cargo.toml
# add, commit, and tag out
git add .
git commit -m "chore: tagging ${version} release"
git push origin main
git tag ${version}
git push origin ${version}
Publish to crates.io with this command.
cd seedelf-cli
cargo clean
cargo test --release
cargo clippy -- -D warnings
cargo fmt -- --check
cargo package
cargo publish
cd ..
If a recompile is required and the contract hashes change then the seedelf-contracts/README.md must be updated to reflect the changes.
Removing a tagged release involves deleting it locally and deleting the tagged branch.
version="0.4.1"
git tag -d ${version}
git push origin --delete ${version}