Mirror/appveyor.yml

37 lines
1.2 KiB
YAML
Raw Normal View History

2018-07-15 16:43:43 +00:00
version: '{branch}-{build}'
2020-01-11 00:59:58 +00:00
environment:
nodejs_version: "10"
2020-01-11 01:04:00 +00:00
LFTP_PASSWORD:
secure: sH23IC4a98S5uTtgYNHNvg==
2020-01-11 00:59:58 +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
- choco install docfx
- choco install lftp
2020-01-11 00:59:58 +00:00
- ps: Install-Product node $env:nodejs_version
2020-01-11 00:54:46 +00:00
- npm install -g semantic-release @semantic-release/exec
2018-08-25 16:45:29 +00:00
#build:
# project: Mirror/Networking.sln
# verbosity: minimal
2018-07-15 16:43:43 +00:00
# Do not build on tags (GitHub only)
skip_tags: true
2018-08-25 16:45:29 +00:00
build_script:
- docfx metadata --logLevel Warning --warningsAsErrors doc\docfx.json
- docfx build --logLevel Warning --warningsAsErrors doc\docfx.json
2018-08-25 16:45:29 +00:00
2018-07-15 16:43:43 +00:00
image: Visual Studio 2017
deploy_script:
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 )