forked from dotnet/vscode-csharp
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
158 additions
and
132 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
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
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 |
---|---|---|
|
@@ -20,67 +20,76 @@ parameters: | |
type: boolean | ||
default: true | ||
|
||
resources: | ||
repositories: | ||
- repository: 1ESPipelineTemplates | ||
type: git | ||
name: 1ESPipelineTemplates/1ESPipelineTemplates | ||
ref: refs/tags/release | ||
|
||
variables: | ||
# Variable group contains the PAT to LOC | ||
- group: OneLocBuildVariables | ||
|
||
stages: | ||
- stage: LocalizationStage | ||
condition: eq(variables['Build.SourceBranch'], 'refs/heads/main') | ||
jobs: | ||
- job: Localization | ||
extends: | ||
template: v1/1ES.Unofficial.PipelineTemplate.yml@1ESPipelineTemplates | ||
parameters: | ||
pool: | ||
name: NetCore1ESPool-Internal | ||
demands: ImageOverride -equals windows.vs2022preview.amd64 | ||
steps: | ||
- task: NodeTool@0 | ||
displayName: 'Install Node.js 18.x' | ||
inputs: | ||
# Octokit client needs 18.x to have 'fetch' function. | ||
versionSpec: '18.x' | ||
- checkout: self | ||
clean: true | ||
submodules: true | ||
fetchTags: false | ||
fetchDepth: 0 | ||
- pwsh: | | ||
npm install | ||
npm install -g gulp | ||
displayName: 'Install tools' | ||
- pwsh: npm run compile | ||
displayName: 'Compile' | ||
- pwsh: npm run l10nDevGenerateLocalizationBundle | ||
displayName: 'Generate bundle.l10.json' | ||
- pwsh: npm run l10nDevGenerateXlf | ||
displayName: 'Generate xlf files from bundle.10n.json' | ||
- task: OneLocBuild@2 | ||
env: | ||
SYSTEM_ACCESSTOKEN: $(System.AccessToken) | ||
inputs: | ||
locProj: loc/LocProject.json | ||
outDir: '$(Build.SourcesDirectory)/loc' | ||
isCreatePrSelected: false | ||
patVariable: $(dn-bot-ceapex-package-r) | ||
packageSourceAuth: patAuth | ||
lclSource: lclFilesfromPackage | ||
LclPackageId: 'LCL-JUNO-PROD-VSCODECS' | ||
- pwsh: npm run l10nDevImportXlf | ||
displayName: 'Import xlf to json.' | ||
- pwsh: gulp 'publish localization content' --userName dotnet-bot --email [email protected] --commitSha $(Build.SourceVersion) --targetRemoteRepo vscode-csharp --baseBranch 'main' | ||
displayName: 'Create PR in GitHub.' | ||
env: | ||
GitHubPAT: $(BotAccount-dotnet-bot-repo-PAT) | ||
- task: PublishBuildArtifacts@1 | ||
displayName: 'Publish Localization Files' | ||
inputs: | ||
PathtoPublish: '$(Build.SourcesDirectory)/loc' | ||
PublishLocation: Container | ||
ArtifactName: Loc | ||
condition: ${{ parameters.publishLocalizationFile }} | ||
- task: PublishBuildArtifacts@1 | ||
displayName: 'Publish l10n file' | ||
inputs: | ||
PathtoPublish: '$(Build.SourcesDirectory)/l10n' | ||
PublishLocation: Container | ||
ArtifactName: l10n | ||
condition: ${{ parameters.publishLocalizationFile }} | ||
name: NetCore1ESPool-Svc-Internal | ||
image: 1es-windows-2022-pt | ||
os: windows | ||
stages: | ||
- stage: LocalizationStage | ||
condition: eq(variables['Build.SourceBranch'], 'refs/heads/main') | ||
jobs: | ||
- job: Localization | ||
templateContext: | ||
outputs: | ||
- output: pipelineArtifact | ||
displayName: LOC | ||
targetPath: '$(Build.SourcesDirectory)/loc' | ||
condition: ${{ parameters.publishLocalizationFile }} | ||
artifactName: loc | ||
- output: pipelineArtifact | ||
displayName: l10n | ||
targetPath: '$(Build.SourcesDirectory)/l10n' | ||
condition: ${{ parameters.publishLocalizationFile }} | ||
artifactName: l10n | ||
steps: | ||
- task: NodeTool@0 | ||
displayName: 'Install Node.js 18.x' | ||
inputs: | ||
# Octokit client needs 18.x to have 'fetch' function. | ||
versionSpec: '18.x' | ||
- checkout: self | ||
clean: true | ||
submodules: true | ||
fetchTags: false | ||
fetchDepth: 0 | ||
- pwsh: | | ||
npm install | ||
npm install -g gulp | ||
displayName: 'Install tools' | ||
- pwsh: npm run compile | ||
displayName: 'Compile' | ||
- pwsh: npm run l10nDevGenerateLocalizationBundle | ||
displayName: 'Generate bundle.l10.json' | ||
- pwsh: npm run l10nDevGenerateXlf | ||
displayName: 'Generate xlf files from bundle.10n.json' | ||
- task: OneLocBuild@2 | ||
env: | ||
SYSTEM_ACCESSTOKEN: $(System.AccessToken) | ||
inputs: | ||
locProj: loc/LocProject.json | ||
outDir: '$(Build.SourcesDirectory)/loc' | ||
isCreatePrSelected: false | ||
patVariable: $(dn-bot-ceapex-package-r) | ||
packageSourceAuth: patAuth | ||
lclSource: lclFilesfromPackage | ||
LclPackageId: 'LCL-JUNO-PROD-VSCODECS' | ||
- pwsh: npm run l10nDevImportXlf | ||
displayName: 'Import xlf to json.' | ||
- pwsh: gulp 'publish localization content' --userName dotnet-bot --email [email protected] --commitSha $(Build.SourceVersion) --targetRemoteRepo vscode-csharp --baseBranch 'main' | ||
displayName: 'Create PR in GitHub.' | ||
env: | ||
GitHubPAT: $(BotAccount-dotnet-bot-repo-PAT) |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.