Skip to content

Commit

Permalink
ci: Use new publish task
Browse files Browse the repository at this point in the history
Closes #102
  • Loading branch information
Kieranties committed May 5, 2020
1 parent 6dd7c02 commit 5372e90
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ jobs:
displayName: "Core Build"
pool:
vmImage: windows-latest
steps:

steps:
# Build
- pwsh: ./build.ps1 -ArtifactsPath $(ArtifactsPath) -Configuration $(Configuration)
displayName: 'Build and Test'
Expand Down Expand Up @@ -65,20 +65,24 @@ jobs:
coverageThreshold: '90'

# Handle artifacts
- task: PublishBuildArtifacts@1
displayName: "Artifacts: Publish"
condition: and(succeeded(), ne(variables['build.reason'], 'PullRequest'))
inputs:
PathtoPublish: $(ArtifactsPath)
ArtifactName: Artifacts
ArtifactType: Container
- publish: $(ArtifactsPath)/docs
displayName: "Artifacts: Publish Docs"
condition: succeeded()
artifact: docs

- publish: $(ArtifactsPath)/dist
displayName: "Artifacts: Publish Dist"
condition: succeeded()
artifact: dist

- task: NuGetCommand@2
displayName: "Artifacts: Push Packages"
condition: and(succeeded(), ne(variables['build.reason'], 'PullRequest'))
condition: succeeded(), ne(variables['build.reason'], 'PullRequest'))
inputs:
command: push
packagesToPush: $(ArtifactsPath)/**/*.nupkg
nuGetFeedType: internal
publishVstsFeed: SimpleVersion
feedsToUse: nuget.config

# TODO - Jobs for Integration testing

0 comments on commit 5372e90

Please sign in to comment.