Skip to content

Commit

Permalink
Update azure-pipelines.yml for Azure Pipelines
Browse files Browse the repository at this point in the history
dotnet-pack during build
  • Loading branch information
jzebedee committed Mar 3, 2019
1 parent cea582a commit a84e923
Showing 1 changed file with 2 additions and 21 deletions.
23 changes: 2 additions & 21 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,28 +11,9 @@ steps:
version: 3.0.100-preview-010184
- script: |
dotnet build src/LibCK2 --configuration $(buildConfiguration) --output $BUILD_BINARIESDIRECTORY
dotnet pack src/LibCK2 --configuration $(buildConfiguration) --no-build --output $BUILD_ARTIFACTSTAGINGDIRECTORY/package --version-suffix 'CI-$(Build.BuildNumber)'
dotnet publish src/LibCK2 --configuration $(buildConfiguration) --no-build --output $BUILD_ARTIFACTSTAGINGDIRECTORY
# dotnet pack src/LibCK2 --configuration $(buildConfiguration) --no-build --output $BUILD_ARTIFACTSTAGINGDIRECTORY
- task: PublishBuildArtifacts@1
inputs:
pathtoPublish: $(Build.ArtifactStagingDirectory)
ArtifactName: 'pub'
- task: PublishBuildArtifacts@1
inputs:
pathtoPublish: $(Build.BinariesDirectory)
ArtifactName: 'bin'
#- task: DotNetCoreCLI@2
# inputs:
# command: 'push'
# nuGetFeedType: 'external' # Required when command == push. Options: internal, external
# packagesToPush: '$(build.artifactStagingDirectory)/*.nupkg' # Required when command == push
# publishFeedCredentials: 'nuget.org scorpdx'
# #nuget.org scorpdx
# #publishVstsFeed: # Required when command == push && NuGetFeedType == internal
# #publishFeedCredentials: # Required when command == push && NuGetFeedType == external
#- task: NuGetCommand@2
# inputs:
# command: push
# nuGetFeedType: external
# publishFeedCredentials: 'nuget.org scorpdx'
# packagesToPush: '$(Build.ArtifactStagingDirectory)/*.nupkg'
ArtifactName: 'pub'

0 comments on commit a84e923

Please sign in to comment.