diff --git a/pipelines/prebuilds.yml b/pipelines/prebuilds.yml index b6934a93..2e7bc34c 100644 --- a/pipelines/prebuilds.yml +++ b/pipelines/prebuilds.yml @@ -2,6 +2,7 @@ trigger: branches: include: - main +pr: none resources: repositories: @@ -102,6 +103,7 @@ extends: arch: arm64 - stage: Archive + dependsOn: Build jobs: - job: archive pool: @@ -130,7 +132,7 @@ extends: outputs: - output: pipelineArtifact targetPath: $(Build.ArtifactStagingDirectory)/prebuilds - artifactName: 'prebuilds' + artifactName: 'prebuilds-$(Build.SourceVersion)' steps: - script: | mkdir -p $(Build.ArtifactStagingDirectory)/prebuilds diff --git a/publish.yml b/publish.yml index 19770cab..f3d78e7d 100644 --- a/publish.yml +++ b/publish.yml @@ -47,7 +47,7 @@ extends: definition: '647' buildVersionToDownload: 'latestFromBranch' branchName: 'refs/heads/main' - artifactName: 'prebuilds' + artifactName: 'prebuilds-$(Build.SourceVersion)' targetPath: 'prebuilds' - pwsh: | Get-ChildItem -Path . -Recurse -Directory -Name "_manifest" | Remove-Item -Recurse -Force @@ -70,7 +70,7 @@ extends: definition: '647' buildVersionToDownload: 'latestFromBranch' branchName: 'refs/heads/main' - artifactName: 'prebuilds' + artifactName: 'prebuilds-$(Build.SourceVersion)' targetPath: 'prebuilds' - bash: chmod +x prebuilds/darwin-*/spawn-helper displayName: 'Ensure spawn-helper is executable'