Skip to content

Commit d7c40c5

Browse files
committed
Work CI-CD
- Upload of nuget packages is not happening in develop branch anymore (except if forced with build var). ***NO_CI***
1 parent 2530ee4 commit d7c40c5

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

azure-pipelines.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -997,16 +997,15 @@ jobs:
997997
artifactName: nanoclr_win32
998998
artifactType: pipeline
999999

1000-
# push NuGet packages to NuGet (always happens when building from main & develop, except on PR builds)
1000+
# push NuGet packages to NuGet (always happens when building from main, except on PR builds)
10011001
- task: NuGetCommand@2
10021002
condition: >-
10031003
and(
10041004
succeeded(),
10051005
eq(variables['System.PullRequest.PullRequestId'], ''),
10061006
or(
10071007
eq(variables['ForceUpload'], true),
1008-
eq(variables['Build.SourceBranchName'], 'main'),
1009-
eq(variables['Build.SourceBranchName'], 'develop')
1008+
eq(variables['Build.SourceBranchName'], 'main')
10101009
)
10111010
)
10121011
continueOnError: true
@@ -1170,16 +1169,15 @@ jobs:
11701169
artifactName: nanoclr_cli
11711170
artifactType: pipeline
11721171

1173-
# push NuGet packages to NuGet (always happens when building from main & develop, except on PR builds)
1172+
# push NuGet packages to NuGet (always happens when building from main, except on PR builds)
11741173
- task: NuGetCommand@2
11751174
condition: >-
11761175
and(
11771176
succeeded(),
11781177
eq(variables['System.PullRequest.PullRequestId'], ''),
11791178
or(
11801179
eq(variables['ForceUpload'], true),
1181-
eq(variables['Build.SourceBranchName'], 'main'),
1182-
eq(variables['Build.SourceBranchName'], 'develop')
1180+
eq(variables['Build.SourceBranchName'], 'main')
11831181
)
11841182
)
11851183
continueOnError: true

0 commit comments

Comments
 (0)