diff --git a/GitVersion.yml b/GitVersion.yml new file mode 100644 index 0000000..c92669d --- /dev/null +++ b/GitVersion.yml @@ -0,0 +1,17 @@ +assembly-informational-format: '{NuGetVersion}' +mode: ContinuousDeployment +branches: + master: + tag: rc + increment: Minor + features?[/-]: + tag: rc-{BranchName} + increment: Minor + (pull|pull\-requests|pr)[/-]: + tag: rc-pr-{BranchName} + increment: Minor + hotfix(es)?[/-]: + tag: rc + increment: Patch + dev(elop)?(ment)?$: + tag: b \ No newline at end of file diff --git a/appveyor.yml b/appveyor.yml new file mode 100644 index 0000000..95e1683 --- /dev/null +++ b/appveyor.yml @@ -0,0 +1,13 @@ +image: Visual Studio 2017 +configuration: Release +install: + - choco install gitversion.portable -y +before_build: + - cmd: gitversion /l console /output buildserver /b %APPVEYOR_REPO_BRANCH% + - nuget restore +build_script: + msbuild /nologo /v:m /p:AssemblyVersion=%GitVersion_AssemblySemVer% /p:FileVersion=%GitVersion_MajorMinorPatch% /p:InformationalVersion=%GitVersion_InformationalVersion% /p:Configuration=%CONFIGURATION% S7.sln +after_build: + - dotnet pack S7.Net -c %CONFIGURATION% /p:Version=%GitVersion_NuGetVersion% --no-build -o ..\artifacts +artifacts: + - path: artifacts\*.* \ No newline at end of file