Skip to content

Commit

Permalink
build: Add nuget packages to build artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
qdot committed Feb 14, 2019
1 parent 3b04c08 commit 4840afc
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions azure-pipelines.yml
Expand Up @@ -104,20 +104,23 @@ jobs:
inputs:
pathtoPublish: '$(Build.ArtifactStagingDirectory)/$(cliBuildName)'
artifactName: "$(cliBuildName)"
- task: DotNetCoreCLI@2
condition: and(succeeded(), and(eq(variables['buildConfiguration'], 'Release'), or(eq(variables['Build.SourceBranch'], 'refs/heads/master'), eq(variables['Build.SourceBranch'], 'refs/heads/dev'))))
- task: CopyFiles@2
inputs:
command: 'pack'
configuration: 'release'
packDirectory: '$(build.artifactStagingDirectory)/nuget'
nobuild: true
- task: DotNetCoreCLI@2
condition: and(succeeded(), and(eq(variables['buildConfiguration'], 'Release'), or(eq(variables['Build.SourceBranch'], 'refs/heads/master'), eq(variables['Build.SourceBranch'], 'refs/heads/dev'))))
contents: "$(System.DefaultWorkingDirectory)/**/*.nupkg"
targetFolder: '$(Build.ArtifactStagingDirectory)/nuget'
cleanTargetFolder: true
- task: PublishBuildArtifacts@1
inputs:
command: "push"
nuGetFeedType: "external"
packagesToPush: "$(build.artifactStagingDirectory)/nuget/*.nupkg"
publishFeedCredentials: "$(NUGET_TOKEN)"
pathtoPublish: '$(Build.ArtifactStagingDirectory)/nuget'
artifactName: "buttplug-csharp-nuget"
# - task: DotNetCoreCLI@2
# condition: and(succeeded(), and(eq(variables['buildConfiguration'], 'Release'), or(eq(variables['Build.SourceBranch'], 'refs/heads/master'), eq(variables['Build.SourceBranch'], 'refs/heads/dev'))))
# displayName: "Push to NuGet"
# inputs:
# command: "push"
# nuGetFeedType: "external"
# packagesToPush: "$(System.DefaultWorkingDirectory)/**/*.nupkg"
# publishFeedCredentials: "$(NUGET_TOKEN)"
- job: "Linux"
pool:
vmImage: 'ubuntu-16.04'
Expand Down

0 comments on commit 4840afc

Please sign in to comment.