-
-
Notifications
You must be signed in to change notification settings - Fork 420
/
pack.bat
34 lines (24 loc) · 1.44 KB
/
pack.bat
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
echo building the docs
set root=
:: %LangExtRoot% is where the source code root should be (i.e. c:\dev\language-ext)
:: %LangExtDocs% is where the docs root should be (i.e. c:\dev\louthy.github.io)
Q:
cd Q:\Dev\best-form\bestform\bin\Release\net8.0
bestform.exe "LanguageExt.Core" "%LangExtRoot%\LanguageExt.Core" "%LangExtDocs%\language-ext" "https://github.com/louthy/language-ext/tree/main"
bestform.exe "LanguageExt.Parsec" "%LangExtRoot%\LanguageExt.Parsec" "%LangExtDocs%\language-ext" "https://github.com/louthy/language-ext/tree/main"
bestform.exe "LanguageExt.FSharp" "%LangExtRoot%\LanguageExt.FSharp" "%LangExtDocs%\language-ext" "https://github.com/louthy/language-ext/tree/main"
bestform.exe "LanguageExt.Rx" "%LangExtRoot%\LanguageExt.Rx" "%LangExtDocs%\language-ext" "https://github.com/louthy/language-ext/tree/main"
bestform.exe "LanguageExt.Sys" "%LangExtRoot%\LanguageExt.Sys" "%LangExtDocs%\language-ext" "https://github.com/louthy/language-ext/tree/main"
echo committing them to git
cd %LangExtDocs%
git add .
git commit -m "Language-ext documentation update"
git push
cd %LangExtRoot%
echo building the artefacts
dotnet restore
dotnet pack LanguageExt.Core -c Release -o ../../artifacts/bin
dotnet pack LanguageExt.FSharp -c Release -o ../../artifacts/bin
dotnet pack LanguageExt.Parsec -c Release -o ../../artifacts/bin
dotnet pack LanguageExt.Rx -c Release -o ../../artifacts/bin
dotnet pack LanguageExt.Sys -c Release -o ../../artifacts/bin