@@ -13,37 +13,37 @@ before_build:
1313 if (-Not $env:APPVEYOR_PULL_REQUEST_TITLE) {
1414 # https://dotnet.github.io/docfx/tutorial/docfx_getting_started.html
1515 git checkout $env:APPVEYOR_REPO_BRANCH -q
16- choco install docfx -y
1716 }
17+ choco install docfx -y
1818
1919after_build :
2020 - pwsh : |
21- #if (-Not $env:APPVEYOR_PULL_REQUEST_TITLE) {
22- CD ./docs
23- & ./generate-examples.ps1
24- & docfx docfx.json
25- if ($lastexitcode -ne 0) {
26- throw [System.Exception] "docfx build failed with exit code $lastexitcode."
27- }
28-
29- git config --global credential.helper store
30- Add-Content "$env:USERPROFILE\.git-credentials" "https://$($env:ACCESS_TOKEN):x-oauth-basic@github .com`n "
31- git config --global user.email "[email protected] " 32- git config --global user.name "Jared Nance"
33- git config --global core.autocrlf false
34- git config --global core.safecrlf false
35- git clone https://github.com/json-api-dotnet/JsonApiDotNetCore. git -b gh-pages origin_site -q
36- Copy-Item origin_site/.git _site -recurse
37- Copy-Item CNAME _site/CNAME
38- Copy-Item home/*.html _site/
39- Copy-Item home/*.ico _site/
40- Copy-Item -Recurse home/assets/* _site/styles/
41- CD _site
42- git add -A 2>&1
43- #git commit -m "CI Updates" -q
21+ CD ./docs
22+ & ./generate-examples.ps1
23+ & docfx docfx.json
24+ if ($lastexitcode -ne 0) {
25+ throw [System.Exception] "docfx build failed with exit code $lastexitcode."
26+ }
27+
28+ git config --global credential.helper store
29+ Add-Content "$env:USERPROFILE\. git-credentials" "https://$($env:ACCESS_TOKEN):[email protected] `n" 30+ git config --global user.email "jaredcnance@gmail .com"
31+ git config --global user.name "Jared Nance "
32+ git config --global core.autocrlf false
33+ git config --global core.safecrlf false
34+ git clone https://github.com/json-api-dotnet/JsonApiDotNetCore. git -b gh-pages origin_site -q
35+ Copy-Item origin_site/. git _site -recurse
36+ Copy-Item CNAME _site/CNAME
37+ Copy-Item home/*.html _site/
38+ Copy-Item home/*.ico _site/
39+ Copy-Item -Recurse home/assets/* _site/styles /
40+ CD _site
41+ git add -A 2>&1
42+ git commit -m "CI Updates" -q
43+ if (-Not $env:APPVEYOR_PULL_REQUEST_TITLE) {
4444 #git push origin gh-pages -q
4545 echo "Documentation updated successfully."
46- # }
46+ }
4747
4848pull_requests :
4949 do_not_increment_build_number : true
0 commit comments