From 80515ebb66bdea2c207e0b6835f555b5162d1268 Mon Sep 17 00:00:00 2001 From: Mehmet Seckin Date: Sat, 16 Nov 2019 22:23:40 +0000 Subject: [PATCH] Use pipeline artifacts --- pipelines/linux-x64.yml | 7 ++----- pipelines/osx-x64.yml | 7 ++----- pipelines/win10-x64.yml | 7 ++----- 3 files changed, 6 insertions(+), 15 deletions(-) diff --git a/pipelines/linux-x64.yml b/pipelines/linux-x64.yml index d9768a4..6df74e8 100644 --- a/pipelines/linux-x64.yml +++ b/pipelines/linux-x64.yml @@ -17,9 +17,6 @@ variables: steps: - script: dotnet publish $(projectDirectory) -c $(buildConfiguration) -r $(runtimeIdentifier) -o $(outputDirectory) /p:Version=$(Build.BuildNumber) --self-contained true displayName: 'Publish self-contained executable for $(runtimeIdentifier)' -- task: PublishBuildArtifacts@1 +- publish: '$(outputDirectory)' displayName: 'Publish artefact for $(runtimeIdentifier)' - inputs: - PathtoPublish: '$(outputDirectory)' - ArtifactName: '$(artifactName)' - publishLocation: 'Container' + artifact: '$(artifactName)' diff --git a/pipelines/osx-x64.yml b/pipelines/osx-x64.yml index c3479f2..f804c85 100644 --- a/pipelines/osx-x64.yml +++ b/pipelines/osx-x64.yml @@ -17,9 +17,6 @@ variables: steps: - script: dotnet publish $(projectDirectory) -c $(buildConfiguration) -r $(runtimeIdentifier) -o $(outputDirectory) /p:Version=$(Build.BuildNumber) --self-contained true displayName: 'Publish self-contained executable for $(runtimeIdentifier)' -- task: PublishBuildArtifacts@1 +- publish: '$(outputDirectory)' displayName: 'Publish artefact for $(runtimeIdentifier)' - inputs: - PathtoPublish: '$(outputDirectory)' - ArtifactName: '$(artifactName)' - publishLocation: 'Container' + artifact: '$(artifactName)' \ No newline at end of file diff --git a/pipelines/win10-x64.yml b/pipelines/win10-x64.yml index a8717a0..b83b65f 100644 --- a/pipelines/win10-x64.yml +++ b/pipelines/win10-x64.yml @@ -17,9 +17,6 @@ variables: steps: - script: dotnet publish $(projectDirectory) -c $(buildConfiguration) -r $(runtimeIdentifier) -o $(outputDirectory) /p:Version=$(Build.BuildNumber) --self-contained true displayName: 'Publish as self-contained executable for $(runtimeIdentifier)' -- task: PublishBuildArtifacts@1 +- publish: '$(outputDirectory)' displayName: 'Publish artefact for $(runtimeIdentifier)' - inputs: - PathtoPublish: '$(outputDirectory)' - ArtifactName: '$(artifactName)' - publishLocation: 'Container' + artifact: '$(artifactName)'