Skip to content

Commit ea60fdf

Browse files
ci: update localization pipeline to use persistCredential instead of PAT (OfficeDev#12294)
* fix: add targetpath * fix: enable persistCredentials * fix: feed name * fix: feed * fix: feed * fix: feed
1 parent 4f8b80a commit ea60fdf

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

.azure-pipelines/localization.yml

+10-4
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,14 @@ name: $(Date:yyyyMMdd).$(Rev:r)
1515
variables:
1616
- name: 1espt.codesignvalidation.enforced
1717
value: false
18-
- name: GitHubPat
19-
value:
20-
- name: OneLocBuildPat
21-
value:
2218
- name: PipelineClassification_Audited
2319
value: Production
2420
- name: PipelineGovernanceStatus_Audited
2521
value: true
2622
- name: policy_service.build_task_injection.enabled
2723
value: true
24+
- name: TeamName
25+
value: 'TeamsFx'
2826
extends:
2927
template: azure-pipelines/MicroBuild.1ES.Official.yml@MicroBuildTemplate
3028
parameters:
@@ -50,10 +48,16 @@ extends:
5048
outputs:
5149
- output: pipelineArtifact
5250
displayName: 'Publish Artifact: drop'
51+
targetPath: '$(Build.ArtifactStagingDirectory)\loc'
52+
artifactName: drop
53+
artifactType: Container
54+
condition: succeeded()
55+
sbomEnabled: false
5356
steps:
5457
- checkout: self
5558
clean: true
5659
fetchTags: false
60+
persistCredentials: true
5761
- task: NuGetAuthenticate@1
5862
displayName: NuGet Authenticate
5963
inputs:
@@ -66,6 +70,8 @@ extends:
6670
isShouldReusePrSelected: true
6771
isAutoCompletePrSelected: false
6872
packageSourceAuth: patAuth
73+
patVariable: '$(System.AccessToken)'
74+
dependencyPackageSource: https://devdiv.pkgs.visualstudio.com/DevDiv/_packaging/TeamsFx/nuget/v3/index.json
6975
- task: PowerShell@2
7076
displayName: Copy zh json files for VSC
7177
inputs:

0 commit comments

Comments
 (0)