File tree Expand file tree Collapse file tree 4 files changed +9
-9
lines changed
Expand file tree Collapse file tree 4 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -9,9 +9,7 @@ branches:
99 - /^feature\/.*/
1010build_script :
1111 - ps : .\build.ps1 -IsOfficialBuild
12- - ps : .\docs\generate.ps1 -NoBuild
13- on_success :
14- - ps : .\docs\push.ps1 -AppVeyor
12+ - ps : .\docs\generate.ps1 -NoBuild -Verbose
1513environment :
1614 access_token :
1715 secure : 7gza5cyC0Fwp5LcFPz9dGMcHXP2jxbrnu7er9R/HkdvnhzGJVADvOtfYO7+Vow5p
@@ -24,6 +22,8 @@ artifacts:
2422 - path : ' artifacts\*.nupkg'
2523 name : Packages
2624 type : NuGetPackages
25+ after_deploy :
26+ - ps : .\docs\push.ps1 -AppVeyor
2727deploy :
2828 - provider : NuGet
2929 name : myget
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -14,11 +14,11 @@ try {
1414
1515 $buildRoot = " $PSScriptRoot /../.build/docs"
1616 $targetDir = " $buildRoot /gh-pages"
17- New-Item - ItemType Directory $buildRoot - ErrorAction Ignore
17+ mkdir - p $buildRoot - ErrorAction Ignore | Out-Null
1818
1919 if (-not (git worktree list -- porcelain | Select-String ' gh-pages' )) {
20- & git fetch origin gh- pages
21- & git worktree add $targetDir gh- pages
20+ exec git fetch -- quiet origin gh - pages: gh- pages
21+ exec git worktree add $targetDir gh- pages
2222 }
2323
2424 $docfxVersion = ' 2.33.2'
3333 }
3434
3535 Push-Location $targetDir
36- & git rm -- quiet -- force - r .
36+ exec git rm -- quiet -- force - r .
3737 Pop-Location
3838
3939 if (-not $NoBuild ) {
5050 finally {
5151 Push-Location $targetDir
5252 & git add ./
53+ Write-Host " Files that changed in docs:"
5354 & git -- no- pager status - s
5455 Pop-Location
5556 }
Original file line number Diff line number Diff line change 11function exec ([string ]$_cmd ) {
22 write-host - ForegroundColor DarkGray " >>> $_cmd $args "
33 $ErrorActionPreference = ' Continue'
4- & $_cmd @args
4+ & $_cmd @args 2>&1
55 $ErrorActionPreference = ' Stop'
66 if ($LASTEXITCODE -ne 0 ) {
77 write-error " Failed with exit code $LASTEXITCODE "
You can’t perform that action at this time.
0 commit comments