Skip to content

Commit b6c83a8

Browse files
committed
Put the crates into the Packages output subdirectory
1 parent 0b7aba5 commit b6c83a8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

eng/pipelines/templates/jobs/pack.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
pwsh: true
5858
filePath: $(Build.SourcesDirectory)/eng/scripts/Pack-Crates.ps1
5959
arguments: >
60-
-OutputPath '$(Build.ArtifactStagingDirectory)'
60+
-OutputPath '$(Build.ArtifactStagingDirectory)/Packages'
6161
-PackageInfoDirectory '$(Build.ArtifactStagingDirectory)/PackageInfo'
6262
6363
- template: /eng/common/pipelines/templates/steps/publish-1es-artifact.yml

eng/pipelines/templates/stages/archetype-rust-release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ stages:
9595
9696
Write-Host "Dry-run verifying '$crateName'"
9797
98-
$command = "cargo publish --manifest-path '$(Pipeline.Workspace)/drop/$crateName/Cargo.toml' --dry-run"
98+
$command = "cargo publish --manifest-path '$(Pipeline.Workspace)/drop/Packages/$crateName/Cargo.toml' --dry-run"
9999
Write-Host "> $command"
100100
Invoke-Expression $command
101101
@@ -106,7 +106,7 @@ stages:
106106
107107
Write-Host "Publishing package '$crateName'"
108108
109-
$cargoBin = '$(Pipeline.Workspace)/drop/$crateName.bin'
109+
$cargoBin = '$(Pipeline.Workspace)/drop/Packages/$crateName.bin'
110110
111111
# https://doc.rust-lang.org/cargo/reference/registry-web-api.html#publish
112112
Invoke-WebRequest -Method Put -Uri 'https://crates.io/api/v1/crates/new' `

0 commit comments

Comments
 (0)