1
0
mirror of https://github.com/go-micro/go-micro.git synced 2024-12-12 08:23:58 +02:00
go-micro/plugins/release.sh
Johnson C 29fefbad4e
Plugins (#2311)
* release plugins

* add window plugins release bat script

Co-authored-by: Johnson C <johnson.cheng@scenestek.com>
2021-10-16 05:56:51 +01:00

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