Skip to content

Commit

Permalink
Work CI-CD
Browse files Browse the repository at this point in the history
- NuGet package publish is now done against nuget.org.
- Remove private Azure feed from nuget.config.
  • Loading branch information
josesimoes committed Jun 12, 2024
1 parent 3e53b2d commit 03d5cbf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
1 change: 0 additions & 1 deletion NuGet.Config
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@
<configuration>
<packageSources>
<add key="NuGet" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
<add key="Azure Artifacts nanoFramework dev" value="https://pkgs.dev.azure.com/nanoframework/feed/_packaging/sandbox/nuget/v3/index.json" protocolVersion="3" />
</packageSources>
</configuration>
14 changes: 9 additions & 5 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -261,17 +261,21 @@ jobs:
condition: succeeded()
displayName: Set build number

# push NuGet packages to Azure Artifacts feed (always happens except on PR builds)
# push NuGet packages to NuGet (always happens except on PR builds)
- task: NuGetCommand@2
displayName: Push NuGet packages to Azure Artifacts
condition: and( succeeded(), eq(variables['System.PullRequest.PullRequestId'], '') )
displayName: Push NuGet packages to NuGet
condition: >-
and(
succeeded(),
eq(variables['System.PullRequest.PullRequestId'], '')
)
continueOnError: true
inputs:
command: push
nuGetFeedType: external
packagesToPush: '$(Build.ArtifactStagingDirectory)/*.nupkg'
publishFeedCredentials: 'AzureArtifacts'
allowPackageConflicts: true
packagesToPush: '$(Build.ArtifactStagingDirectory)/*.nupkg'
publishFeedCredentials: 'NuGet-$(System.TeamProject)'

# create or update GitHub release
- task: GithubRelease@1
Expand Down

0 comments on commit 03d5cbf

Please sign in to comment.