|
@ -47,7 +47,7 @@ jobs: |
|
|
Add-Content link_branch.json "{`"_gitContribute`":{`"sourceBranch`":`"$env:GITHUB_SHA`",`"apiSpecFolder`":`"docs/override`"}}" |
|
|
Add-Content link_branch.json "{`"_gitContribute`":{`"sourceBranch`":`"$env:GITHUB_SHA`",`"apiSpecFolder`":`"docs/override`"}}" |
|
|
powershell .\build.ps1 |
|
|
powershell .\build.ps1 |
|
|
if ($lastexitcode -ne 0){ |
|
|
if ($lastexitcode -ne 0){ |
|
|
throw [System.Exception] "docfx build failed with exit code $lastexitcode." |
|
|
|
|
|
|
|
|
throw [System.Exception] "docfx build failed with exit code $lastexitcode." |
|
|
} |
|
|
} |
|
|
- name: Publish master site to GitHub pages |
|
|
- name: Publish master site to GitHub pages |
|
|
shell: powershell |
|
|
shell: powershell |
|
@ -76,7 +76,7 @@ jobs: |
|
|
$srcMessage = (git show -s --format=%B $env:GITHUB_SHA) -join "`n" |
|
|
$srcMessage = (git show -s --format=%B $env:GITHUB_SHA) -join "`n" |
|
|
|
|
|
|
|
|
cd $env:ORIGIN_SITE |
|
|
cd $env:ORIGIN_SITE |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (-Not (Test-Path $env:BRANCH_DIR)) { |
|
|
if (-Not (Test-Path $env:BRANCH_DIR)) { |
|
|
New-Item -ItemType directory -Path $env:BRANCH_DIR |
|
|
New-Item -ItemType directory -Path $env:BRANCH_DIR |
|
|
} |
|
|
} |
|
|