-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4818297
commit 7d7a255
Showing
2 changed files
with
40 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,40 @@ | ||
@echo off | ||
|
||
echo GoCommand build thing. | ||
echo. | ||
|
||
set buildVersion=%1 | ||
|
||
set outputPath="%~dp0\deploy" | ||
|
||
if exist "%outputPath%" ( | ||
rd "%outputPath%" /s/q | ||
) | ||
|
||
mkdir "%outputPath%" | ||
|
||
if "%buildVersion%"=="" ( | ||
echo. | ||
echo Please specify which version to build as an argument | ||
echo. | ||
goto exit | ||
) | ||
|
||
echo Building version %buildVersion%... | ||
|
||
msbuild GoCommando\GoCommando.csproj -P:Configuration=Release | ||
nuget\nuget pack Package.nuspec -out c:\temp | ||
|
||
echo Tagging... | ||
|
||
git tag %buildVersion% | ||
|
||
echo Packing... | ||
|
||
nuget\nuget pack Package.nuspec -out %outputPath% -version %buildVersion% | ||
|
||
echo Pushing... | ||
|
||
git push | ||
git push --tags | ||
|
||
:exit |