@@ -13,37 +13,37 @@ before_build:
13
13
if (-Not $env:APPVEYOR_PULL_REQUEST_TITLE) {
14
14
# https://dotnet.github.io/docfx/tutorial/docfx_getting_started.html
15
15
git checkout $env:APPVEYOR_REPO_BRANCH -q
16
- choco install docfx -y
17
16
}
17
+ choco install docfx -y
18
18
19
19
after_build :
20
20
- 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) {
44
44
#git push origin gh-pages -q
45
45
echo "Documentation updated successfully."
46
- # }
46
+ }
47
47
48
48
pull_requests :
49
49
do_not_increment_build_number : true
0 commit comments