瀏覽代碼

Travis CI: disable package upload for external PR

Arseniy Shestakov 8 年之前
父節點
當前提交
0fd775151f
共有 2 個文件被更改,包括 11 次插入0 次删除
  1. 5 0
      CI/mac/upload_package.sh
  2. 6 0
      CI/mxe/upload_package.sh

+ 5 - 0
CI/mac/upload_package.sh

@@ -1,4 +1,9 @@
 #!/bin/sh
+if [ -z "$encrypted_1d30f79f8582_key" ];
+then
+	# Due to security measures travis not expose encryption keys for PR from forks
+	exit 0
+fi
 cpack
 
 touch /tmp/deploy_rsa

+ 6 - 0
CI/mxe/upload_package.sh

@@ -1,4 +1,10 @@
 #!/bin/sh
+if [ -z "$encrypted_1d30f79f8582_key" ];
+then
+	# Due to security measures travis not expose encryption keys for PR from forks
+	exit 0
+fi
+
 cpack
 
 touch /tmp/deploy_rsa