Skip to content

Commit

Permalink
Use better artifact names
Browse files Browse the repository at this point in the history
  • Loading branch information
mehmetseckin committed Nov 16, 2019
1 parent 1cf9532 commit def88e1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion pipelines/linux-x64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ variables:
projectDirectory: $(Build.SourcesDirectory)/src/Todo.CLI/
runtimeIdentifier: linux-x64
outputDirectory: $(Build.ArtifactStagingDirectory)/$(runtimeIdentifier)/
artifactName: 'todo.$(Build.BuildNumber).$(runtimeIdentifier)'

steps:
- script: dotnet publish $(projectDirectory) -c $(buildConfiguration) -r $(runtimeIdentifier) -o $(outputDirectory) /p:Version=$(Build.BuildNumber) --self-contained true
Expand All @@ -20,5 +21,5 @@ steps:
displayName: 'Publish artefact for $(runtimeIdentifier)'
inputs:
PathtoPublish: '$(outputDirectory)'
ArtifactName: 'todo-cli.$(runtimeIdentifier)'
ArtifactName: '$(artifactName)'
publishLocation: 'Container'
3 changes: 2 additions & 1 deletion pipelines/osx-x64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ variables:
projectDirectory: $(Build.SourcesDirectory)/src/Todo.CLI/
runtimeIdentifier: osx-x64
outputDirectory: $(Build.ArtifactStagingDirectory)/$(runtimeIdentifier)/
artifactName: 'todo.$(Build.BuildNumber).$(runtimeIdentifier)'

steps:
- script: dotnet publish $(projectDirectory) -c $(buildConfiguration) -r $(runtimeIdentifier) -o $(outputDirectory) /p:Version=$(Build.BuildNumber) --self-contained true
Expand All @@ -20,5 +21,5 @@ steps:
displayName: 'Publish artefact for $(runtimeIdentifier)'
inputs:
PathtoPublish: '$(outputDirectory)'
ArtifactName: 'todo-cli.$(runtimeIdentifier)'
ArtifactName: '$(artifactName)'
publishLocation: 'Container'
3 changes: 2 additions & 1 deletion pipelines/win10-x64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ variables:
projectDirectory: $(Build.SourcesDirectory)/src/Todo.CLI/
runtimeIdentifier: win10-x64
outputDirectory: $(Build.ArtifactStagingDirectory)/$(runtimeIdentifier)/
artifactName: 'todo.$(Build.BuildNumber).$(runtimeIdentifier)'

steps:
- script: dotnet publish $(projectDirectory) -c $(buildConfiguration) -r $(runtimeIdentifier) -o $(outputDirectory) /p:Version=$(Build.BuildNumber) --self-contained true
Expand All @@ -20,5 +21,5 @@ steps:
displayName: 'Publish artefact for $(runtimeIdentifier)'
inputs:
PathtoPublish: '$(outputDirectory)'
ArtifactName: 'todo-cli.$(runtimeIdentifier)'
ArtifactName: '$(artifactName)'
publishLocation: 'Container'

0 comments on commit def88e1

Please sign in to comment.