Skip to content

Commit 3bf2ede

Browse files
committed
Attempt conditional doc deploy
1 parent d336427 commit 3bf2ede

File tree

2 files changed

+25
-12
lines changed

2 files changed

+25
-12
lines changed

.appveyor.yml

Lines changed: 24 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ init:
77
- REG ADD "HKEY_CURRENT_USER\Software\Microsoft\Command Processor" /v DelayedExpansion /t REG_DWORD /d 1 /f
88

99
environment:
10-
deploy_docs: "false"
10+
DEPLOY_DOCS: "false"
1111
matrix:
1212
- PHP_VERSION: "7.1.25"
1313
PHP_DIR: "php71"
@@ -20,7 +20,7 @@ environment:
2020
- PHP_VERSION: "7.3.8"
2121
PHP_DIR: "php73"
2222
XDEBUG: "https://xdebug.org/files/php_xdebug-2.8.0beta1-7.3-vc15-nts-x86_64.dll"
23-
deploy_docs: "true"
23+
DEPLOY_DOCS: "true"
2424

2525
matrix:
2626
fast_finish: true
@@ -55,15 +55,28 @@ install:
5555

5656
- cd c:\projects\wmi-scripting
5757

58-
- ps: $fileContent = "-----BEGIN RSA PRIVATE KEY-----`n"
59-
- ps: $fileContent += $env:priv_key.Replace(' ', "`n")
60-
- ps: $fileContent += "`n-----END RSA PRIVATE KEY-----`n"
61-
- ps: Set-Content $env:userprofile\.ssh\id_rsa $fileContent
62-
- git submodule update --init --recursive
63-
- git config --global user.email "%GIT_EMAIL%"
64-
- git config --global user.name "%GIT_EMAIL%"
65-
- yarn install
66-
- yarn docs:deploy:windows:ci
58+
- IF "%DEPLOY_DOCS%" == "true" (
59+
- ps: >-
60+
$fileContent = "-----BEGIN RSA PRIVATE KEY-----`n"
61+
$fileContent += $env:priv_key.Replace(' ', "`n")
62+
$fileContent += "`n-----END RSA PRIVATE KEY-----`n"
63+
Set-Content $env:userprofile\.ssh\id_rsa $fileContent
64+
- git submodule update --init --recursive
65+
- git config --global user.email "%GIT_EMAIL%"
66+
- git config --global user.name "%GIT_EMAIL%"
67+
- yarn install
68+
- yarn docs:deploy:windows:ci
69+
)
70+
71+
# - ps: $fileContent = "-----BEGIN RSA PRIVATE KEY-----`n"
72+
# - ps: $fileContent += $env:priv_key.Replace(' ', "`n")
73+
# - ps: $fileContent += "`n-----END RSA PRIVATE KEY-----`n"
74+
# - ps: Set-Content $env:userprofile\.ssh\id_rsa $fileContent
75+
# - git submodule update --init --recursive
76+
# - git config --global user.email "%GIT_EMAIL%"
77+
# - git config --global user.name "%GIT_EMAIL%"
78+
# - yarn install
79+
# - yarn docs:deploy:windows:ci
6780

6881
- IF NOT EXIST composer.phar (appveyor DownloadFile https://github.com/composer/composer/releases/download/1.9.0/composer.phar)
6982
- php composer.phar self-update
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# Getting Started
22

3-
Composer install.. etc..
3+
Composer install.. etc.. and other stuff.

0 commit comments

Comments
 (0)