Skip to content

Commit 03b6b04

Browse files
committed
Use the new Packages subdirectory when creating repo tag
1 parent 5abe850 commit 03b6b04

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ stages:
5656
5757
- template: /eng/common/pipelines/templates/steps/create-tags-and-git-release.yml
5858
parameters:
59-
ArtifactLocation: $(Pipeline.Workspace)/${{parameters.PipelineArtifactName}}/${{artifact.name}}
59+
ArtifactLocation: $(Pipeline.Workspace)/${{parameters.PipelineArtifactName}}/Packages/${{artifact.name}}
6060
PackageRepository: Crates.io
6161
ReleaseSha: $(Build.SourceVersion)
6262
WorkingDirectory: $(Pipeline.Workspace)/_work
@@ -95,6 +95,9 @@ stages:
9595
9696
Write-Host "Dry-run verifying '$crateName'"
9797
98+
# remove Cargo.toml.orig before calling dry-run as it causes a reserved file name error
99+
Remove-Item -Path "$(Pipeline.Workspace)/drop/Packages/$crateName/Cargo.toml.orig" -Force -ErrorAction Ignore
100+
98101
$command = "cargo publish --manifest-path '$(Pipeline.Workspace)/drop/Packages/$crateName/Cargo.toml' --dry-run"
99102
Write-Host "> $command"
100103
Invoke-Expression $command

0 commit comments

Comments
 (0)