commit adbb3da92635cdd07671aa3e2c7b265d342c7836
parent 3ddab4fc16f3f1165dcab0588e706a39fe96fa0b
Author: jamespik <48262337+jamespik@users.noreply.github.com>
Date: Tue, 5 May 2020 13:02:31 -0700
Initial Loc build definition. (#99)
Stand up a simple localization build definition to bootstrap uploading resources to touchdown.
Diffstat:
2 files changed, 48 insertions(+), 0 deletions(-)
diff --git a/azure-pipelines.loc.yml b/azure-pipelines.loc.yml
@@ -0,0 +1,46 @@
+#
+# Localization
+# This pipeline uploads English strings files to the localization service, downloads any translated
+# files which are available, and checks them in to git. This pipeline relies on Microsoft-internal
+# resources to run.
+#
+
+# Expects a variable called LocServiceKey to contain the OAuth client secret for Touchdown.
+
+trigger: none
+pr: none
+
+name: $(BuildDefinitionName)_$(date:yyMM).$(date:dd)$(rev:rrr)
+
+jobs:
+- job: Localize
+ pool:
+ vmImage: windows-2019
+ variables:
+ skipComponentGovernanceDetection: true
+ steps:
+ - task: MicrosoftTDBuild.tdbuild-task.tdbuild-task.TouchdownBuildTask@1
+ displayName: Send resources to Touchdown Build
+ inputs:
+ teamId: 8343
+ authId: d3dd8113-65b3-4526-bdca-a00a7d1c37ba
+ authKey: $(LocServiceKey)
+ isPreview: false
+ relativePathRoot: src\AppInstallerCLIPackage\Shared\Strings\en-us
+ resourceFilePath: '*.resw'
+ outputDirectoryRoot: localization/Resources/
+
+ - script: |
+ cd $(Build.SourcesDirectory)
+ git add -A
+ git diff --cached --exit-code
+ echo ##vso[task.setvariable variable=hasChanges]%errorlevel%
+ git diff --cached > $(Build.ArtifactStagingDirectory)\LocalizedStrings.patch
+ displayName: Check for changes and create patch file
+
+ - task: PublishPipelineArtifact@0
+ displayName: Publish patch file as artifact
+ condition: eq(variables['hasChanges'], '1')
+ inputs:
+ artifactName: Patch
+ targetPath: $(Build.ArtifactStagingDirectory)+
\ No newline at end of file
diff --git a/src/AppInstallerCLI.sln b/src/AppInstallerCLI.sln
@@ -14,6 +14,7 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "AppInstallerRepositoryCore"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Project", "Project", "{8D53D749-D51C-46F8-A162-9371AAA6C2E7}"
ProjectSection(SolutionItems) = preProject
+ ..\azure-pipelines.loc.yml = ..\azure-pipelines.loc.yml
..\azure-pipelines.yml = ..\azure-pipelines.yml
..\cgmanifest.json = ..\cgmanifest.json
..\README.md = ..\README.md