-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpublish.bat
More file actions
44 lines (32 loc) · 776 Bytes
/
publish.bat
File metadata and controls
44 lines (32 loc) · 776 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
@echo off
cls
REM Variables
set year=%date:~10,4%
set day=%date:~4,2%
set month=%date:~7,2%
set hr=%time:~0,2%
set mn=%time:~3,2%
REM Fix Hours
SET hr=%hr: =0%
set VER=%year%.%month%.%day%.%hr%%mn%
echo %VER%
REM Building
rmdir /q /s publish
mkdir publish
rmdir /q /s package
mkdir package
REM Clean
echo Clean
dotnet clean "FastColoredTextBox.sln"
REM Build
echo Pack Lib
dotnet pack "FastColoredTextBox.csproj" --interactive --output ".\package" /p:Version=%VER%
REM Upload
echo Upload
dotnet nuget push --source "https://fungusware.pkgs.visualstudio.com/Fungusware/_packaging/Default/nuget/v3/index.json" --interactive --api-key az .\package\FastColoredTextBox.*.nupkg
GOTO _EXIT_
:_FAILURE_
echo ******* Errors occured. See previous.
GOTO _EXIT_
: _EXIT_
pause