Skip to content

Commit

Permalink
build & deploy scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
louthy committed Sep 2, 2024
1 parent e53ea65 commit bd2ad01
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 29 deletions.
8 changes: 1 addition & 7 deletions clean.sh
Original file line number Diff line number Diff line change
@@ -1,17 +1,11 @@
echo cleaing bin, obj, and /louthy.github.io/language-ext

# $BestFormBin is where the bestform.exe is compiled to
# Artifacts is where the DLLs are compiled to
Artifacts=/home/paul/Documents/dev/artifacts

# $BestFormBin is where the bestform.exe is compiled to
BestFormBin=/home/paul/Documents/dev/best-form/bestform

# $LangExtRoot is where the source code root should be (i.e. c:\dev\language-ext)
LangExtRoot=/home/paul/Documents/dev/language-ext

# $LangExtDocs is where the docs root should be (i.e. c:\dev\louthy.github.io)
LangExtDocs=/home/paul/Documents/dev/louthy.github.io

rm -rf $Artifacts

rm -rf $LangExtRoot/LanguageExt.Core/bin
Expand Down
28 changes: 19 additions & 9 deletions docs.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
# $BestFormBin is where the bestform.exe is compiled to
BestFormBin=/home/paul/Documents/dev/best-form/bestform

# $LangExtRoot is where the source code root should be (i.e. c:\dev\language-ext)
LangExtRoot=/home/paul/Documents/dev/language-ext

# $LangExtDocs is where the docs root should be (i.e. c:\dev\louthy.github.io)
LangExtDocs=/home/paul/Documents/dev/louthy.github.io

echo cleaning the docs

rm -rf $LangExtDocs/language-ext/LanguageExt.Core
Expand All @@ -8,18 +17,19 @@ rm -rf $LangExtDocs/language-ext/LanguageExt.Sys

echo building the docs

# $BestFormBin is where the bestform.exe is compiled to
BestFormBin=/home/paul/Documents/dev/best-form/bestform

# $LangExtRoot is where the source code root should be (i.e. c:\dev\language-ext)
LangExtRoot=/home/paul/Documents/dev/language-ext

# $LangExtDocs is where the docs root should be (i.e. c:\dev\louthy.github.io)
LangExtDocs=/home/paul/Documents/dev/louthy.github.io

dotnet build $BestFormBin/bestform.csproj -c Release
dotnet run --project $BestFormBin -c Release --no-build "LanguageExt.Core" "$LangExtRoot/LanguageExt.Core" "$LangExtDocs/language-ext" "https://github.com/louthy/language-ext/tree/main"
dotnet run --project $BestFormBin -c Release --no-build "LanguageExt.Parsec" "$LangExtRoot/LanguageExt.Parsec" "$LangExtDocs/language-ext" "https://github.com/louthy/language-ext/tree/main"
dotnet run --project $BestFormBin -c Release --no-build "LanguageExt.FSharp" "$LangExtRoot/LanguageExt.FSharp" "$LangExtDocs/language-ext" "https://github.com/louthy/language-ext/tree/main"
dotnet run --project $BestFormBin -c Release --no-build "LanguageExt.Rx" "$LangExtRoot/LanguageExt.Rx" "$LangExtDocs/language-ext" "https://github.com/louthy/language-ext/tree/main"
dotnet run --project $BestFormBin -c Release --no-build "LanguageExt.Sys" "$LangExtRoot/LanguageExt.Sys" "$LangExtDocs/language-ext" "https://github.com/louthy/language-ext/tree/main"

echo committing docs to git

cd $LangExtDocs

git add .
git commit -m "Language-ext documentation update"
git push

echo finished commmitting docs to git
24 changes: 11 additions & 13 deletions pack.sh
Original file line number Diff line number Diff line change
@@ -1,21 +1,19 @@
sh clean.sh
sh docs.sh

echo committing them to git
# Artifacts is where the DLLs are compiled to
Artifacts=/home/paul/Documents/dev/artifacts

cd $LangExtDocs
# $LangExtRoot is where the source code root should be (i.e. c:\dev\language-ext)
LangExtRoot=/home/paul/Documents/dev/language-ext

git add .
git commit -m "Language-ext documentation update"
git push
sh clean.sh
sh docs.sh

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
dotnet pack LanguageExt.Core -c Release -o $Artifacts
dotnet pack LanguageExt.FSharp -c Release -o $Artifacts
dotnet pack LanguageExt.Parsec -c Release -o $Artifacts
dotnet pack LanguageExt.Rx -c Release -o $Artifacts
dotnet pack LanguageExt.Sys -c Release -o $Artifacts

0 comments on commit bd2ad01

Please sign in to comment.