1
0
mirror of https://github.com/go-micro/go-micro.git synced 2025-01-17 17:44:30 +02:00
go-micro/plugins/release.bat

22 lines
416 B
Batchfile
Raw Normal View History

@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%"=="" (
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%
)
)
endlocal