2018-07-15 16:43:43 +00:00
|
|
|
version: '{branch}-{build}'
|
|
|
|
|
2018-12-22 16:19:46 +00:00
|
|
|
#init:
|
|
|
|
# - ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
|
|
|
|
|
|
|
|
#on_finish:
|
|
|
|
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
|
|
|
|
|
|
|
|
install:
|
2019-03-27 11:49:29 +00:00
|
|
|
- choco install unitypackager
|
2019-08-24 15:20:33 +00:00
|
|
|
- choco install docfx
|
|
|
|
- choco install lftp
|
2019-12-21 14:40:53 +00:00
|
|
|
- npm install -g semantic-release@15 @semantic-release/exec
|
2019-08-24 15:20:33 +00:00
|
|
|
|
2018-08-25 16:45:29 +00:00
|
|
|
#build:
|
|
|
|
# project: Mirror/Networking.sln
|
|
|
|
# verbosity: minimal
|
2018-07-15 16:43:43 +00:00
|
|
|
|
2018-09-26 11:32:38 +00:00
|
|
|
# Do not build on tags (GitHub only)
|
|
|
|
skip_tags: true
|
|
|
|
|
2018-08-25 16:45:29 +00:00
|
|
|
build_script:
|
2019-08-24 15:20:33 +00:00
|
|
|
- docfx metadata doc\docfx.json
|
|
|
|
- docfx build doc\docfx.json
|
2018-08-25 16:45:29 +00:00
|
|
|
|
2019-03-27 11:49:29 +00:00
|
|
|
after_build:
|
2019-04-18 13:00:07 +00:00
|
|
|
- RMDIR /Q /S Assets\Mirror\Tests
|
|
|
|
- del /F /Q Assets\Mirror\Tests.meta
|
2019-12-08 06:41:32 +00:00
|
|
|
- UnityPackager pack Mirror.unitypackage Assets/Mirror Assets/Mirror Assets/ScriptTemplates Assets/ScriptTemplates LICENSE Assets/Mirror/LICENSE
|
2019-03-27 11:49:29 +00:00
|
|
|
|
2018-07-15 16:43:43 +00:00
|
|
|
artifacts:
|
2019-03-27 11:49:29 +00:00
|
|
|
- path: Mirror.unitypackage
|
2019-04-03 11:47:08 +00:00
|
|
|
- path: Assets
|
|
|
|
name: Mirror
|
2019-12-08 06:41:32 +00:00
|
|
|
- path: Assets
|
|
|
|
name: ScriptTemplates
|
2018-07-15 16:43:43 +00:00
|
|
|
|
|
|
|
image: Visual Studio 2017
|
|
|
|
|
2019-08-24 15:20:33 +00:00
|
|
|
environment:
|
|
|
|
LFTP_PASSWORD:
|
|
|
|
secure: sH23IC4a98S5uTtgYNHNvg==
|
2018-10-18 00:27:43 +00:00
|
|
|
|
2019-03-19 15:44:43 +00:00
|
|
|
deploy_script:
|
|
|
|
- semantic-release
|
2019-09-25 03:42:02 +00:00
|
|
|
- IF "%APPVEYOR_REPO_BRANCH%"=="master" ( lftp -e 'set ftp:ssl-allow no ; mirror -R -c -e -p doc/_site public_html/docs; chmod -R a+X public_html/docs ; ls -l public_html/docs/ ; ls -l public_html/docs/styles/ ; bye' -u mirreofx --env-password ftp://mirror-networking.com 2>&1 )
|
2019-08-24 15:20:33 +00:00
|
|
|
|