1
0
mirror of https://github.com/go-micro/go-micro.git synced 2024-11-24 08:02:32 +02:00
go-micro/plugins/release.sh

17 lines
368 B
Bash
Raw Normal View History

2020-12-26 17:32:45 +02:00
#!/bin/bash
tag=$1
commitsh=$2
2020-12-26 17:32:45 +02:00
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