@@ -29,7 +29,7 @@ Krew tags versions starting with `v`. Example: `v0.2.0-rc.1`.
29
29
1. ** Decide on a version number:** set it to ` $TAG ` variable:
30
30
31
31
` ` ` sh
32
- TAG=v0.2.0 -rc.1 # <- change this
32
+ TAG=v0.3.2 -rc.1 # <- change this
33
33
` ` `
34
34
35
35
1. ** Update installation instructions:** Version number is hardcoded in
@@ -39,9 +39,15 @@ Krew tags versions starting with `v`. Example: `v0.2.0-rc.1`.
39
39
40
40
git commit -am " Release ${TAG:? TAG required} "
41
41
42
+ 1. ** Push PR and merge changes** : The repository hooks forbid direct pushes to
43
+ master, so the changes from the previous step need to be pushed and merged
44
+ as a regular PR.
45
+
42
46
1. ** Tag the release:**
43
47
44
48
` ` ` sh
49
+ git fetch origin
50
+ git reset --hard origin/master # when the previous merge is done
45
51
release_notes="$(TAG=$TAG hack/make-release-notes.sh)"
46
52
git tag -a "${TAG:?TAG required}" -m "${release_notes}"
47
53
` ` `
@@ -52,19 +58,22 @@ Krew tags versions starting with `v`. Example: `v0.2.0-rc.1`.
52
58
53
59
1. ** Push the tag:**
54
60
55
- git push --follow-tags
56
-
57
- Due to branch restrictions on GitHub preventing pushing to a branch
58
- directly, this command may require ` -f` .
61
+ git push --tags
59
62
60
63
1. ** Verify on Releases tab on GitHub**
61
64
62
- 1. ** Make the new version available on krew index:** Copy the ` krew.yaml` from
63
- the release artifacts and make a pull request to
65
+ 1. ** Make the new version available on krew index:** Get the latest ` krew.yaml` from
66
+
67
+ curl -LO https://github.com/kubernetes-sigs/krew/releases/download/v0.3.2-rc.1/krew.yaml
68
+
69
+ and make a pull request to
64
70
[krew-index](https://github.com/kubernetes-sigs/krew-index/) repository.
65
71
This will make the plugin available to upgrade for users using older versions
66
72
of krew.
67
73
74
+ 1. ** Update krew-index CI** : For validating manifests, the CI should use the latest version
75
+ (see ` .travis.yml` in ` krew-index` the repository).
76
+
68
77
# # Release artifacts
69
78
70
79
When a tag is pushed to the repository, Travis CI will make a release on GitHub
0 commit comments