Skip to content
/ kube-rs Public
forked from kube-rs/kube

Commit

Permalink
replace release glue with release.toml from cargo-release
Browse files Browse the repository at this point in the history
  • Loading branch information
clux committed Jan 23, 2021
1 parent 5d9f65c commit 3fdb3fb
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 62 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
0.48.0 / 2021-01-XX
<!-- next-header -->
UNRELEASED
===================
* bump `k8s-openapi` to `0.11.0` - #388
* breaking: `kube`: no longer necessary to serialize patches yourself - #386
Expand Down
9 changes: 0 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,6 @@ test:
readme:
rustdoc README.md --test --edition=2018

bump-minor:
./release.sh minor

bump-patch:
./release.sh patch

publish:
./release.sh publish

minikube-create:
sudo rm -rf /tmp/juju-mk* /tmp/minikube*
minikube start --driver=docker \
Expand Down
52 changes: 0 additions & 52 deletions release.sh

This file was deleted.

19 changes: 19 additions & 0 deletions release.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Release process:
# 1. cargo release
# 2. verify that all crates are bumped and versions are in-line before proceeding
# 3a. await publishing - failures can happen due to still https://github.com/sunng87/cargo-release/issues/224
# 3b. fix failures from 3a (resume publishing manually, cd into dir, cargo publish, wait, continue for next in line)
# 4. check that the consolidated commit replaced everything, and that the tag is correct
# 5. git push && git push --tags

consolidate-commits = true
disable-push = true # until we know it always works
no-dev-version = true # bumps happen right before release
pre-release-replacements = [
{file="README.md", search="kube = \"[a-z0-9\\.-]+\"", replace="kube = \"{{version}}\""}
{file="README.md", search="kube-runtime = \"[a-z0-9\\.-]+\"", replace="kube-runtime = \"{{version}}\""}
{file="kube-derive/README.md", search="version = \"[a-z0-9\\.-]+\"", replace="version = \"{{version}}\""}
{file="CHANGELOG.md", search="UNRELEASED", replace="{{version}} / {{date}}"},
{file="CHANGELOG.md", search="<!-- next-header -->", replace="<!-- next-header -->\nUNRELEASED\n==================="},
]
exclude-paths = ["examples", "tests"]

0 comments on commit 3fdb3fb

Please sign in to comment.