File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- #! /bin/bash
1+ #! /bin/sh
22
33if [ -z " $1 " ]; then
44 echo " Missing version tag."
5- echo " USAGE: release.sh <VERSION>"
5+ echo " USAGE: $0 <VERSION>"
66 exit 1
77fi
88
9-
109NEW_VERSION=$1
1110
12- echo $1
13- echo $NEW_VERSION
14-
15- git tag core/$NEW_VERSION
16- git push origin core/$NEW_VERSION
17-
18- (
19- cd ./diskv
20- go get pkg.lovergne.dev/httpcache/core@$NEW_VERSION
21- )
22- (
23- cd ./otter
24- go get pkg.lovergne.dev/httpcache/core@$NEW_VERSION
25- )
26- (
27- cd ./memcache
28- go get pkg.lovergne.dev/httpcache/core@$NEW_VERSION
29- )
30- (
31- cd ./redis
32- go get pkg.lovergne.dev/httpcache/core@$NEW_VERSION
33- )
34-
35- go work sync
36- git add .
37- git commit -m " chore: bump httpcache/core version in cache implementation"
38-
39- git tag diskv/$NEW_VERSION
40- git tag memcache/$NEW_VERSION
41- git tag otter/$NEW_VERSION
42- git tag redis/$NEW_VERSION
43- git push origin core/$NEW_VERSION otter/$NEW_VERSION diskv/$NEW_VERSION memcache/$NEW_VERSION redis/$NEW_VERSION
11+ git tag core/" $NEW_VERSION "
12+ git tag diskv/" $NEW_VERSION "
13+ git tag memcache/" $NEW_VERSION "
14+ git tag otter/" $NEW_VERSION "
15+ git tag redis/" $NEW_VERSION "
16+ git tag storagetest/" $NEW_VERSION "
17+
18+ git push origin \
19+ core/" $NEW_VERSION " \
20+ otter/" $NEW_VERSION " \
21+ diskv/" $NEW_VERSION " \
22+ memcache/" $NEW_VERSION " \
23+ redis/" $NEW_VERSION " \
24+ storagetest/" $NEW_VERSION "
You can’t perform that action at this time.
0 commit comments