mirror of
https://github.com/go-micro/go-micro.git
synced 2024-11-24 08:02:32 +02:00
29fefbad4e
* release plugins * add window plugins release bat script Co-authored-by: Johnson C <johnson.cheng@scenestek.com>
17 lines
368 B
Bash
Executable File
17 lines
368 B
Bash
Executable File
#!/bin/bash
|
|
|
|
tag=$1
|
|
commitsh=$2
|
|
|
|
if [ "x$tag" = "x" ]; then
|
|
echo "must specify tag to release"
|
|
exit 1;
|
|
fi
|
|
|
|
for m in $(find * -name 'go.mod' -exec dirname {} \;); do
|
|
if [ ! -n "$commitsh" ]; then
|
|
hub release create -m "plugins/$m/$tag release" plugins/$m/$tag;
|
|
else
|
|
hub release create -m "plugins/$m/$tag release" -t $commitsh plugins/$m/$tag;
|
|
fi
|
|
done |