-
Notifications
You must be signed in to change notification settings - Fork 8.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Port our Daily Loc Submission build out of Azure DevOps to YAML (#13492)
Does what it says on the tin!
- Loading branch information
Showing
1 changed file
with
62 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
trigger: none | ||
pr: none | ||
schedules: | ||
- cron: "0 3 * * 2-6" # Run at 03:00 UTC Tuesday through Saturday (After the work day in Pacific, Mon-Fri) | ||
displayName: "Nightly Localization Build" | ||
branches: | ||
include: | ||
- main | ||
always: false # only run if there's code changes! | ||
|
||
pool: | ||
vmImage: windows-2019 | ||
|
||
resources: | ||
repositories: | ||
- repository: self | ||
type: git | ||
ref: main | ||
- repository: internal | ||
type: git | ||
name: Terminal.Internal | ||
ref: main | ||
|
||
steps: | ||
|
||
- checkout: self | ||
clean: true | ||
submodules: false | ||
fetchDepth: 1 # Don't need a deep checkout for loc files! | ||
persistCredentials: true | ||
path: s # Adding a second repo made Azure DevOps change where we're checked out. | ||
|
||
- checkout: internal | ||
clean: true | ||
submodules: false | ||
fetchDepth: 1 | ||
persistCredentials: true | ||
path: s/Terminal.Internal | ||
|
||
- task: MicrosoftTDBuild.tdbuild-task.tdbuild-task.TouchdownBuildTask@1 | ||
displayName: 'Touchdown Build - 7105, PRODEXT' | ||
inputs: | ||
teamId: 7105 | ||
authId: '$(TouchdownApplicationID)' | ||
authKey: '$(TouchdownApplicationKey)' | ||
resourceFilePath: | | ||
**\en-US\*.resw | ||
Terminal.Internal\PDPs\Stable\PDPs\en-us\PDP.xml | ||
Terminal.Internal\PDPs\Preview\PDPs\en-us\PDP.xml | ||
outputDirectoryRoot: LocOutput | ||
appendRelativeDir: true | ||
pseudoSetting: Included | ||
|
||
# Saving one of these makes it really easy to inspect the loc output... | ||
- powershell: 'tar czf LocOutput.tar.gz LocOutput' | ||
displayName: 'Archive Loc Output for Submission' | ||
|
||
- task: PublishBuildArtifacts@1 | ||
displayName: 'Publish Artifact: LocOutput' | ||
inputs: | ||
PathtoPublish: LocOutput.tar.gz | ||
ArtifactName: LocOutput |