forked from STARIONGROUP/VCD-Generator
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrelease.bat
More file actions
47 lines (32 loc) · 634 Bytes
/
Copy pathrelease.bat
File metadata and controls
47 lines (32 loc) · 634 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
@echo off
IF %1.==. GOTO KeyError
set apikey=%1
GOTO Begin
:KeyError
ECHO.
ECHO ERROR: No apikey was specified
ECHO.
GOTO End
:Begin
ECHO.
ECHO Cleaning up...
ECHO.
IF EXIST "%~dp0\ReleaseBuilds" (
rmdir "%~dp0\ReleaseBuilds" /s /q
)
mkdir "%~dp0\ReleaseBuilds"
rem Cleaning Builds...
dotnet clean -c Release VCD-Generator.sln
ECHO.
ECHO Packing nugets...
ECHO.
rem Packing New Versions...
dotnet pack -c Release -o ReleaseBuilds VCD-Generator.sln
ECHO.
ECHO Pushing to nuget.org ...
ECHO.
dotnet nuget push ReleaseBuilds\*.nupkg -s api.nuget.org -k %apikey% --skip-duplicate
:End
ECHO.
ECHO Release Completed
ECHO.