diff --git a/README.md b/README.md index 090cc06..7158b77 100644 --- a/README.md +++ b/README.md @@ -8,4 +8,4 @@ Library for managing postal codes for .NET This package follows the git-flow branching model: * Develop features of a ```feature/*``` branch. * Create pull request to a ```master``` branch. -* Once ```master``` is branched into ```release/.``` an automatic job builds and if successful publishes the NuGet package. \ No newline at end of file +* Once ```master``` is branched into ```release/..``` an automatic job builds and if successful publishes the NuGet package. \ No newline at end of file diff --git a/appveyor.yml b/appveyor.yml index 0430664..85db227 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,7 +1,7 @@ version: build_number_{build} skip_tags: true init: -- ps: "$v = [regex]::match($env:APPVEYOR_REPO_BRANCH,'release/(.*)').Groups[1].Value\nWrite-Host \"On branch $($env:APPVEYOR_REPO_BRANCH)\"\nIF($v) { \n $env:VERSION_FROM_BRANCH = \"$($v).$($env:APPVEYOR_BUILD_NUMBER)\"\n} else {\n $env:VERSION_FROM_BRANCH = \"0.0.$($env:APPVEYOR_BUILD_NUMBER)\"\n}\nWrite-Host \"Set version to $($env:VERSION_FROM_BRANCH)\"" +- ps: "$v = [regex]::match($env:APPVEYOR_REPO_BRANCH,'release/(.*)').Groups[1].Value\nWrite-Host \"On branch $($env:APPVEYOR_REPO_BRANCH)\"\nIF($v) { \n $env:VERSION_FROM_BRANCH = \"$($v).$($env:APPVEYOR_BUILD_NUMBER)\"\n} else {\n $env:VERSION_FROM_BRANCH = \"0.0.0.$($env:APPVEYOR_BUILD_NUMBER)\"\n}\nWrite-Host \"Set version to $($env:VERSION_FROM_BRANCH)\"" assembly_info: patch: true file: '**\AssemblyInfo.*' @@ -24,7 +24,7 @@ deploy: on: branch: /release/.*/ - provider: GitHub - release: + release: $(VERSION_FROM_BRANCH) auth_token: secure: WU3IlQqOmPsEQ5Gsmj9MMBMdwNynLhxuBBK5C1SiPBygO78NcehvQw92TOfDkEq0 artifact: Dlls