mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-17 18:40:33 +00:00
801515afe6
fix appveyor build error
46 lines
1.3 KiB
YAML
46 lines
1.3 KiB
YAML
version: '{branch}-{build}'
|
|
|
|
#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:
|
|
- choco install unitypackager
|
|
- choco install docfx
|
|
- choco install lftp
|
|
- npm install -g semantic-release@15
|
|
|
|
#build:
|
|
# project: Mirror/Networking.sln
|
|
# verbosity: minimal
|
|
|
|
# Do not build on tags (GitHub only)
|
|
skip_tags: true
|
|
|
|
build_script:
|
|
- docfx metadata doc\docfx.json
|
|
- docfx build doc\docfx.json
|
|
|
|
after_build:
|
|
- RMDIR /Q /S Assets\Mirror\Tests
|
|
- del /F /Q Assets\Mirror\Tests.meta
|
|
- UnityPackager pack Mirror.unitypackage Assets/Mirror Assets/Mirror LICENSE Assets/Mirror/LICENSE
|
|
|
|
artifacts:
|
|
- path: Mirror.unitypackage
|
|
- path: Assets
|
|
name: Mirror
|
|
|
|
image: Visual Studio 2017
|
|
|
|
environment:
|
|
LFTP_PASSWORD:
|
|
secure: sH23IC4a98S5uTtgYNHNvg==
|
|
|
|
deploy_script:
|
|
- semantic-release
|
|
- IF "%APPVEYOR_REPO_BRANCH%"=="master" ( lftp -e 'set ftp:ssl-allow no ; mirror -R -c -e -p doc/_site public_html/xmldocs; chmod -R a+X public_html/xmldocs ; ls -l public_html/xmldocs/ ; ls -l public_html/xmldocs/styles/ ; bye' -u mirreofx --env-password ftp://mirror-networking.com 2>&1 )
|
|
|