Testing gh-pages deployment

This commit is contained in:
Cyberboss
2017-10-19 13:46:12 -04:00
parent 97c1b15813
commit 93f62405a6
2 changed files with 20 additions and 0 deletions
+17
View File
@@ -6,9 +6,26 @@ $doxdir = "C:\tgsdox"
New-Item -Path $doxdir -ItemType directory
$publish_dox = (-not (Test-Path Env:APPVEYOR_PULL_REQUEST_NUMBER)) -and ("$Env:APPVEYOR_REPO_BRANCH" -eq "master")
if($publish_dox){
git clone -b gh-pages --single-branch https://git@github.com/$Env:APPVEYOR_REPO_NAME doxdir
rm -rf "$doxdir\*"
}
Add-Content "$bf\Tools\Doxyfile" "`nPROJECT_NUMBER = $version`nINPUT = $bf`nOUTPUT_DIRECTORY = $doxdir`nPROJECT_LOGO = $bf/tgs.ico"
doxygen.exe "$bf\Tools\Doxyfile"
if($publish_dox){
cd $doxdir
git config --global push.default simple
git config user.name "Appveyor CI"
git config user.email "ci@appveyor.com"
git add --all
git commit -m "Deploy code docs to GitHub Pages for Appveyor build $Env:APPVEYOR_BUILD_NUMBER" -m "Commit: $Env:APPVEYOR_REPO_COMMIT"
git push --force origin gh-pages > /dev/null 2>&1
}
$destination = "$bf\TGS3-Server-v$version.exe"
Move-Item -Path "$src\TG Station Server Installer.exe" -Destination "$destination"
+3
View File
@@ -3,6 +3,9 @@ pull_requests:
branches:
except:
- gh-pages
environment:
repo_token:
secure: lJNGAXwiB5HlWdthz3K4PetqpTG5IEAyRgKaiKxFMQ8HW8CcOjRtB97B05op7BsK
skip_branch_with_pr: true
image: Visual Studio 2017
configuration: Release