Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Devops: Use a Firely template to push the nuget packages #2380

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 5 additions & 15 deletions build/azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -243,8 +243,6 @@ stages:
- deployment: gitHub
displayName: GitHub Packages
environment: GitHub
variables:
GITHUB_PACKAGES_APIKEY: $(GitHubPushPackagesAPIKey) # key is set in UI of Azure Devops
strategy:
runOnce:
deploy:
Expand All @@ -269,19 +267,11 @@ stages:
runOnce:
deploy:
steps:
- download: current
artifact: NuGetPackages
displayName: Download artifact NuGetPackages
- task: NuGetCommand@2
displayName: 'NuGet Push packages'
inputs:
command: push
packagesToPush: '$(Agent.BuildDirectory)/NuGetPackages/*.*nupkg'
nuGetFeedType: external
publishFeedCredentials: NuGet
verbosityPush: normal
includeSymbols: true

- template: push-nuget-package.yml@templates
parameters:
artifact: 'NuGetPackages'
source: https://api.nuget.org/v3/index.json
apiKey: $(NUGET_APIKEY)
- deployment: relNotes
displayName: Release Notes
environment: NuGet
Expand Down
4 changes: 3 additions & 1 deletion build/pipeline-variables.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@
# Variables used during the whole pipeline.

variables:
isTagBranch: $[startswith(variables['Build.SourceBranch'], 'refs/tags/v')]
isTagBranch: $[startswith(variables['Build.SourceBranch'], 'refs/tags/v')]
GITHUB_PACKAGES_APIKEY: $(GitHubPushPackagesAPIKey) # key is set in UI of Azure Devops
NUGET_APIKEY: $(NuGetAPIKey) # key is set in UI of Azure Devops