Browse Source

Updated some configuration

pull/46/head
Anairkoen Schno 5 years ago
parent
commit
67d765bb0a
4 changed files with 32 additions and 4 deletions
  1. +2
    -1
      IPA.Loader/doc/.gitignore
  2. +1
    -1
      IPA.Loader/doc/articles/intro.md
  3. +1
    -1
      IPA.Loader/doc/articles/toc.yml
  4. +28
    -1
      appveyor.yml

+ 2
- 1
IPA.Loader/doc/.gitignore View File

@ -2,4 +2,5 @@
/**/DROP/ /**/DROP/
/**/TEMP/ /**/TEMP/
/**/packages/ /**/packages/
/**/bin/
/**/bin/
/obj

+ 1
- 1
IPA.Loader/doc/articles/intro.md View File

@ -1 +1 @@
# Add your introductions here!
TODO

+ 1
- 1
IPA.Loader/doc/articles/toc.yml View File

@ -1,2 +1,2 @@
- name: Introduction
- name: Getting Started
href: intro.md href: intro.md

+ 28
- 1
appveyor.yml View File

@ -6,6 +6,12 @@ pull_requests:
install: install:
- git submodule update --init --recursive - git submodule update --init --recursive
- nuget restore - nuget restore
- ps: |
if (-Not $env:APPVEYOR_PULL_REQUEST_TITLE)
{
git checkout $env:APPVEYOR_REPO_BRANCH -q
choco install docfx -y
}
image: Visual Studio 2017 image: Visual Studio 2017
configuration: Release configuration: Release
platform: x64 platform: x64
@ -35,4 +41,25 @@ deploy:
draft: true draft: true
force_update: true force_update: true
on: on:
branch: master
branch: master
after_deploy:
- ps: |
if(-Not $env:APPVEYOR_PULL_REQUEST_TITLE -And $env:APPVEYOR_REPO_BRANCH -eq 'master')
{
cd IPA.Loader/doc
& docfx docfx.json
if ($lastexitcode -ne 0){
throw [System.Exception] "docfx build failed with exit code $lastexitcode."
}
git config --global credential.helper store
#Add-Content "$env:USERPROFILE\.git-credentials" "https://$($env:access_token):[email protected]`n"
git config --global user.email $env:APPVEYOR_REPO_COMMIT_AUTHOR_EMAIL
git config --global user.name $env:APPVEYOR_REPO_COMMIT_AUTHOR
git clone "https://github.com/$env:APPVEYOR_REPO_NAME.git" -b gh-pages origin_site -q
Copy-Item origin_site/.git _site -recurse
CD _site
git add -A 2>&1
git commit -m "$env:APPVEYOR_REPO_COMMIT_MESSAGE -- Docs" -q
git push origin gh-pages -q
}

Loading…
Cancel
Save