Correct the paths in the release scripts for pact_consumer
@@ -98,13 +98,13 @@ ask('Publish library to crates.io?: [Y]') {
executeOnShell 'cargo publish'
}
-executeOnShell "tar cvfz pact_consumer-docs-${releaseVer}.tgz *", new File("./target/doc")
-
def nextVer = Version.valueOf(releaseVer).incrementPatchVersion()
ask("Bump version to $nextVer?: [Y]") {
executeOnShell "sed -i -e 's/version = \"${releaseVer}\"/version = \"${nextVer}\"/' Cargo.toml"
executeOnShell "sed -i -e 's/documentation = \"https:\\/\\/docs.rs\\/pact_consumer\\/${releaseVer}\\/pact_consumer\\/\"/documentation = \"https:\\/\\/docs.rs\\/pact_consumer\\/${nextVer}\\/pact_consumer\\/\"/' Cargo.toml"
+ executeOnShell("cargo update")
executeOnShell("git add Cargo.toml")
+ executeOnShell("git add ../Cargo.lock")
executeOnShell("git diff --cached")
ask("Commit and push this change?: [Y]") {
executeOnShell("git commit -m 'bump version to $nextVer'")
