소스 검색

[TravisCI] deploy doc to api.haxe.org

because haxe.org now points to AWS but the doc is still living in the old server
Andy Li 9 년 전
부모
커밋
e6a1146905
2개의 변경된 파일5개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 1
      .travis.yml
  2. 2 2
      Makefile

+ 3 - 1
.travis.yml

@@ -24,7 +24,9 @@ env:
 sudo: required
 dist: trusty
 addons: &addons
-  ssh_known_hosts: haxe.org
+  ssh_known_hosts:
+    - haxe.org
+    - api.haxe.org
 
 install_linux: &install_linux
   # Install neko and haxe dependencies

+ 2 - 2
Makefile

@@ -257,8 +257,8 @@ package_doc:
 	haxelib run dox --title "Haxe API" -o $(PACKAGE_OUT_DIR)/$(PACKAGE_FILE_NAME)_doc.zip -D version "$$(haxe -version 2>&1)" -i $$(haxelib path dox | head -n 1)bin/xml -ex microsoft -ex javax -ex cs.internal -D source-path https://github.com/HaxeFoundation/haxe/blob/$(BRANCH)/std/
 
 deploy_doc:
-	scp $(PACKAGE_OUT_DIR)/$(PACKAGE_FILE_NAME)_doc.zip [email protected]:/data/haxeapi/www/v/dev/api-latest.zip
-	ssh [email protected] "cd /data/haxeapi/www/v/dev && find . ! -name 'api-latest.zip' -maxdepth 1 -mindepth 1 -exec rm -rf {} + && unzip -q -o api-latest.zip"
+	scp $(PACKAGE_OUT_DIR)/$(PACKAGE_FILE_NAME)_doc.zip www-haxe@api.haxe.org:/data/haxeapi/www/v/dev/api-latest.zip
+	ssh www-haxe@api.haxe.org "cd /data/haxeapi/www/v/dev && find . ! -name 'api-latest.zip' -maxdepth 1 -mindepth 1 -exec rm -rf {} + && unzip -q -o api-latest.zip"
 
 # Clean