File tree Expand file tree Collapse file tree 3 files changed +12
-21
lines changed Expand file tree Collapse file tree 3 files changed +12
-21
lines changed Original file line number Diff line number Diff line change 23
23
24
24
- name : Check out code into the Go module directory
25
25
uses : actions/checkout@v3
26
+ with :
27
+ fetch-depth : 0
26
28
27
29
- name : Install dependencies
28
30
run : go mod download
Original file line number Diff line number Diff line change @@ -32,13 +32,10 @@ Krew tags versions starting with `v`. Example: `v0.2.0-rc.1`.
32
32
33
33
1. ** Create a release commit:**
34
34
35
- git commit -am " Release ${TAG:? TAG required} " --allow-empty
36
-
37
- 1. ** Push PR and merge changes** : The repository hooks forbid direct pushes to
38
- master, so the changes from the previous step need to be pushed and merged
39
- as a regular PR.
40
-
41
- git push origin master
35
+ ` ` ` sh
36
+ git commit -am " Release ${TAG:? TAG required} " --allow-empty
37
+ git push origin master
38
+ ` ` `
42
39
43
40
(Only repository administrators can directly push to master branch.)
44
41
@@ -47,16 +44,7 @@ Krew tags versions starting with `v`. Example: `v0.2.0-rc.1`.
47
44
48
45
1. ** Tag the release:**
49
46
50
- ` ` ` sh
51
- git fetch origin
52
- git reset --hard origin/master # when the previous merge is done
53
- release_notes="$(TAG=$TAG hack/make-release-notes.sh)"
54
- git tag -a "${TAG:?TAG required}" -m "${release_notes}"
55
- ` ` `
56
-
57
- 1. ** Verify the release instructions:**
58
-
59
- git show " ${TAG:? TAG required} "
47
+ git tag " ${TAG:? TAG required} "
60
48
61
49
1. ** Push the tag:**
62
50
@@ -76,7 +64,7 @@ Krew tags versions starting with `v`. Example: `v0.2.0-rc.1`.
76
64
77
65
1. ** Update krew-index CI** : The CI tests for ` krew-index` repository relies on
78
66
tools from main ` krew` repository, and they should use the latest version.
79
- When there' s a new version, update the `.travis .yml` in `krew-index` repo.
67
+ When there' s a new version, update `.github/workflows/ci .yml` in `krew-index` repo.
80
68
81
69
## Release artifacts
82
70
Original file line number Diff line number Diff line change @@ -74,17 +74,18 @@ for f in "${download_assets[@]}"; do
74
74
done
75
75
echo
76
76
echo " Thanks to our contributors for helping out with ${TAG} :"
77
- git log " $( git describe --tags --abbrev=0) ..HEAD" --format=%an |
77
+ previous_version=" $( git describe --tags --match ' v*' --abbrev=0 " ${TAG} ^" ) "
78
+ git log " ${previous_version} ..${TAG} " --format=%an |
78
79
sort | uniq -c | sort -rn |
79
80
sed -E ' s,^(\s+[0-9]+\s),- ,g'
80
81
echo
81
- echo " (krew ${TAG} is tagged on $( date -u) .)"
82
+ echo " (krew ${TAG} was tagged on $( date -u) .)"
82
83
echo
83
84
echo ' <details>'
84
85
echo ' <summary>Merged pull requests</summary>'
85
86
echo # this empty line is important for correct markdown rendering
86
87
# you can pass your github token with --token here if you run out of requests
87
88
88
- " ${gopath} /bin/release-notes" kubernetes-sigs krew
89
+ " ${gopath} /bin/release-notes" kubernetes-sigs krew --since " ${previous_version} "
89
90
echo ' </details>'
90
91
echo
You can’t perform that action at this time.
0 commit comments