Skip to content

Commit 046251c

Browse files
committed
Work CI-CD
- Remove task publishing to private Azure feed. - Update condition to publish nanoCLR on develop builds. ***NO_CI***
1 parent dac0e07 commit 046251c

File tree

1 file changed

+6
-44
lines changed

1 file changed

+6
-44
lines changed

azure-pipelines.yml

Lines changed: 6 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1003,35 +1003,16 @@ jobs:
10031003
artifactName: nanoclr_win32
10041004
artifactType: pipeline
10051005

1006-
# push NuGet packages to Azure Artifacts feed (always happens when building from main, except on PR builds)
1006+
# push NuGet packages to NuGet (always happens when building from main & develop, except on PR builds)
10071007
- task: NuGetCommand@2
10081008
condition: >-
10091009
and(
10101010
succeeded(),
10111011
eq(variables['System.PullRequest.PullRequestId'], ''),
10121012
or(
10131013
eq(variables['ForceUpload'], true),
1014-
eq(variables['Build.SourceBranchName'], 'main')
1015-
)
1016-
)
1017-
continueOnError: true
1018-
displayName: Push NuGet packages to Azure Artifacts
1019-
inputs:
1020-
command: push
1021-
nuGetFeedType: external
1022-
packagesToPush: "$(Build.ArtifactStagingDirectory)/*.nupkg"
1023-
publishFeedCredentials: "AzureArtifacts-nf-interpreter"
1024-
allowPackageConflicts: true
1025-
1026-
# push NuGet packages to NuGet (always happens when building from main, except on PR builds)
1027-
- task: NuGetCommand@2
1028-
condition: >-
1029-
and(
1030-
succeeded(),
1031-
eq(variables['System.PullRequest.PullRequestId'], ''),
1032-
or(
1033-
eq(variables['ForceUpload'], true),
1034-
eq(variables['Build.SourceBranchName'], 'main')
1014+
eq(variables['Build.SourceBranchName'], 'main'),
1015+
eq(variables['Build.SourceBranchName'], 'develop')
10351016
)
10361017
)
10371018
continueOnError: true
@@ -1195,35 +1176,16 @@ jobs:
11951176
artifactName: nanoclr_cli
11961177
artifactType: pipeline
11971178

1198-
# push NuGet packages to Azure Artifacts feed (always happens when building from main, except on PR builds)
1199-
- task: NuGetCommand@2
1200-
condition: >-
1201-
and(
1202-
succeeded(),
1203-
eq(variables['System.PullRequest.PullRequestId'], ''),
1204-
or(
1205-
eq(variables['ForceUpload'], true),
1206-
eq(variables['Build.SourceBranchName'], 'main')
1207-
)
1208-
)
1209-
continueOnError: true
1210-
displayName: Push NuGet packages to Azure Artifacts
1211-
inputs:
1212-
command: push
1213-
nuGetFeedType: external
1214-
packagesToPush: "$(Build.ArtifactStagingDirectory)/*.nupkg"
1215-
publishFeedCredentials: "AzureArtifacts-nf-interpreter"
1216-
allowPackageConflicts: true
1217-
1218-
# push NuGet packages to NuGet (always happens when building from main, except on PR builds)
1179+
# push NuGet packages to NuGet (always happens when building from main & develop, except on PR builds)
12191180
- task: NuGetCommand@2
12201181
condition: >-
12211182
and(
12221183
succeeded(),
12231184
eq(variables['System.PullRequest.PullRequestId'], ''),
12241185
or(
12251186
eq(variables['ForceUpload'], true),
1226-
eq(variables['Build.SourceBranchName'], 'main')
1187+
eq(variables['Build.SourceBranchName'], 'main'),
1188+
eq(variables['Build.SourceBranchName'], 'develop')
12271189
)
12281190
)
12291191
continueOnError: true

0 commit comments

Comments
 (0)