mirror of
https://github.com/go-micro/go-micro.git
synced 2025-03-03 15:22:30 +02:00
* release plugins * add window plugins release bat script Co-authored-by: Johnson C <johnson.cheng@scenestek.com>
22 lines
426 B
Batchfile
22 lines
426 B
Batchfile
@echo off
|
|
|
|
set tag=%1
|
|
set commitsh=%2
|
|
|
|
if "%tag%"=="" (
|
|
echo "must specify tag to release"
|
|
exit
|
|
)
|
|
|
|
setlocal enabledelayedexpansion
|
|
for /r %%i in (go.mod) do (
|
|
set m=%%~dpi
|
|
set m=!m:%~dp0=!
|
|
set m=!m:\=/!
|
|
if "%commitsh%"=="" (
|
|
echo hub release create -m "plugins/!m!%tag% release" plugins/!m!%tag%
|
|
) else (
|
|
echo hub release create -m "plugins/!m!%tag% release" -t %commitsh% plugins/!m!%tag%
|
|
)
|
|
)
|
|
endlocal |