Skip to content

Commit

Permalink
update nuget tagging logic
Browse files Browse the repository at this point in the history
  • Loading branch information
caleblloyd committed Oct 6, 2019
1 parent 172209f commit 8c5d7e0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ jobs:
if echo "$(Build.SourceBranchName)" | grep -qE '^[0-9]+\.[0-9]+\.[0-9]+$'; then
export IS_FINAL_BUILD="true"
else
final_version="true"
export IS_FINAL_BUILD="true"
fi
elif echo "$(Build.SourceBranch)" | grep -qE '^refs/heads/'; then
if [ "$(Build.SourceBranchName)" = "master" ]; then
Expand All @@ -126,7 +126,7 @@ jobs:
./build.sh "/p:SkipTests=true" "/p:BuildNumber=${BUILD_NUMBER}" "/p:IsFinalBuild=${IS_FINAL_BUILD}"
fi
pack_nuget_org="false"
if [ "$final_version_kind" != "" ]; then
if [ "$IS_FINAL_BUILD" = "true" ]; then
IFS=$'\n'
for i in $(find artifacts -name "*.nupkg"); do
filename=$(basename $i)
Expand All @@ -146,6 +146,7 @@ jobs:
nuGetFeedType: external
publishFeedCredentials: PomeloEFCoreNuget
packagesToPush: artifacts/**/*.nupkg
continueOnError: true
condition: and( succeeded(), eq(variables['Pack.Pack'],'true'), or( eq(variables['Pack.Wip'],'true'), variables['BuildSucceeded'] ) )
- task: NuGetCommand@2
displayName: "Nuget Push nuget.org"
Expand Down

0 comments on commit 8c5d7e0

Please sign in to comment.