Skip to content

Commit c75d5ac

Browse files
committed
Add publish-unitsnet.bat
Convenient script to release a new nuget with a double-click of the mouse. Pulls in latest master, bumps the version and pushes the new commit and tags so a new nuget is published by AppVeyor.
1 parent 27ed9a6 commit c75d5ac

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

publish-unitsnet.bat

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
@echo off
2+
call git checkout master
3+
if %errorlevel% neq 0 goto EXIT
4+
5+
call git pull --rebase --prune
6+
if %errorlevel% neq 0 goto EXIT
7+
8+
call build\bump-version-UnitsNet-minor.bat
9+
if %errorlevel% neq 0 goto EXIT
10+
11+
call git push --follow-tags --set-upstream
12+
if %errorlevel% neq 0 goto EXIT
13+
14+
echo.
15+
echo New version of UnitsNet pushed!
16+
17+
:EXIT
18+
echo.
19+
pause

0 commit comments

Comments
 (0)