From efe3a001f9bf74ece414e5ffcd0af6f38c372018 Mon Sep 17 00:00:00 2001 From: yunair Date: Tue, 17 Nov 2020 11:35:11 +0800 Subject: [PATCH 1/3] change to sdp --- config/azure-pipelines/update-docs.yaml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/config/azure-pipelines/update-docs.yaml b/config/azure-pipelines/update-docs.yaml index fe555a41..81ea1e01 100644 --- a/config/azure-pipelines/update-docs.yaml +++ b/config/azure-pipelines/update-docs.yaml @@ -9,7 +9,7 @@ schedules: displayName: 'Daily release (M-F at 8am)' # will be 7am when DST ends unless trigger is updated branches: include: - - master + - sdp-pipeline always: true steps: @@ -31,6 +31,13 @@ steps: verbose: false customCommand: install --save-dev office-ui-fabric-react @uifabric/fabric-website +- task: Npm@1 + displayName: 'npm install office2sdp tool' + inputs: + command: custom + verbose: false + customCommand: install --save-dev office2sdp + - task: Npm@1 displayName: 'npm run build' inputs: @@ -76,6 +83,14 @@ steps: $(Build.ArtifactStagingDirectory)/doc-files/api displayName: Inject additional line in TOC.yml +- script: > + node + node_modules/.bin/sdp-cli + generate + --output-folder $(Build.ArtifactStagingDirectory)/doc-files/api + --input-folder $(System.DefaultWorkingDirectory)/input + displayName: Run SDP converter + - task: CopyFiles@2 displayName: 'Copy example and overview files' inputs: From 1aed929a920553493f56516a4232ecca910199aa Mon Sep 17 00:00:00 2001 From: yunair Date: Tue, 17 Nov 2020 13:58:02 +0800 Subject: [PATCH 2/3] fix cli param --- config/azure-pipelines/update-docs.yaml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/config/azure-pipelines/update-docs.yaml b/config/azure-pipelines/update-docs.yaml index 81ea1e01..dff164b8 100644 --- a/config/azure-pipelines/update-docs.yaml +++ b/config/azure-pipelines/update-docs.yaml @@ -32,7 +32,7 @@ steps: customCommand: install --save-dev office-ui-fabric-react @uifabric/fabric-website - task: Npm@1 - displayName: 'npm install office2sdp tool' + displayName: 'npm install sdp converter tool' inputs: command: custom verbose: false @@ -86,9 +86,7 @@ steps: - script: > node node_modules/.bin/sdp-cli - generate - --output-folder $(Build.ArtifactStagingDirectory)/doc-files/api - --input-folder $(System.DefaultWorkingDirectory)/input + -s $(Build.ArtifactStagingDirectory)/doc-files/api displayName: Run SDP converter - task: CopyFiles@2 From 97ef95d1bc7fcc04dbffad0694831869d9f659fa Mon Sep 17 00:00:00 2001 From: yunair Date: Tue, 17 Nov 2020 14:58:37 +0800 Subject: [PATCH 3/3] trigger branch change to master --- config/azure-pipelines/update-docs.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/azure-pipelines/update-docs.yaml b/config/azure-pipelines/update-docs.yaml index dff164b8..a4eb2a66 100644 --- a/config/azure-pipelines/update-docs.yaml +++ b/config/azure-pipelines/update-docs.yaml @@ -9,7 +9,7 @@ schedules: displayName: 'Daily release (M-F at 8am)' # will be 7am when DST ends unless trigger is updated branches: include: - - sdp-pipeline + - master always: true steps: