|
1 | 1 | trigger: |
2 | 2 | - main |
3 | 3 |
|
| 4 | +resources: |
| 5 | + repositories: |
| 6 | + - repository: azure-sdk-tools |
| 7 | + type: github |
| 8 | + name: Azure/azure-sdk-tools |
| 9 | + |
4 | 10 | extends: |
5 | 11 | template: /eng/1es-redirect.yml |
6 | 12 | parameters: |
@@ -37,57 +43,8 @@ extends: |
37 | 43 | # only include if running on `internal` build with manual queue, otherwise never include |
38 | 44 | - ${{ if and(in(variables['Build.Reason'], 'Manual', ''), eq(variables['System.TeamProject'], 'internal'))}}: |
39 | 45 | - stage: Publish |
40 | | - displayName: Publish |
41 | 46 | dependsOn: Build_And_Test |
42 | | - |
43 | 47 | jobs: |
44 | | - - deployment: Publish |
45 | | - environment: 'package-publish' |
46 | | - pool: |
47 | | - name: azsdk-pool |
48 | | - image: ubuntu-24.04 |
49 | | - os: linux |
50 | | - |
51 | | - strategy: |
52 | | - runOnce: |
53 | | - deploy: |
54 | | - steps: |
55 | | - - checkout: self |
56 | | - submodules: false |
57 | | - |
58 | | - - download: current |
59 | | - artifact: drop |
60 | | - timeoutInMinutes: 5 |
61 | | - |
62 | | - - task: PowerShell@2 |
63 | | - inputs: |
64 | | - filePath: '$(Build.SourcesDirectory)/eng/scripts/determine-release-tag.ps1' |
65 | | - failOnStderr: true |
66 | | - pwsh: true |
67 | | - |
68 | | - - pwsh: | |
69 | | - Write-Host "Will deploy with tag of $(Tag)" |
70 | | - Get-ChildItem "$(Pipeline.Workspace)/drop" -Recurse -Force ` |
71 | | - | Where-Object { $_.Name -like "*.tgz" } ` |
72 | | - | Copy-Item -Destination "$(Build.ArtifactStagingDirectory)" |
73 | | -
|
74 | | - Get-ChildItem "$(Build.ArtifactStagingDirectory)" -Recurse -Force | % { Write-Host $_.FullName } |
75 | | - displayName: Move artifact to $(Build.ArtifactStagingDirectory) |
76 | | -
|
77 | | - - task: EsrpRelease@9 |
78 | | - displayName: 'Publish oav to ESRP' |
79 | | - inputs: |
80 | | - ConnectedServiceName: 'Azure SDK PME Managed Identity' |
81 | | - ClientId: '5f81938c-2544-4f1f-9251-dd9de5b8a81b' |
82 | | - DomainTenantId: '975f013f-7f24-47e8-a7d3-abc4752bf346' |
83 | | - UseManagedIdentity: true |
84 | | - KeyVaultName: 'kv-azuresdk-codesign' |
85 | | - SignCertName: 'azure-sdk-esrp-release-certificate' |
86 | | - Intent: 'PackageDistribution' |
87 | | - ContentType: 'npm' |
88 | | - FolderLocation: $(Build.ArtifactStagingDirectory) |
89 | | - Owners: ${{ coalesce(variables['Build.RequestedForEmail'], '[email protected]') }} |
90 | | - |
91 | | - ServiceEndpointUrl: 'https://api.esrp.microsoft.com' |
92 | | - MainPublisher: 'ESRPRELPACMANTEST' |
93 | | - productstate: $(Tag) |
| 48 | + - template: /eng/common/pipelines/templates/jobs/npm-publish.yml@azure-sdk-tools |
| 49 | + parameters: |
| 50 | + ArtifactName: drop-linux |
0 commit comments