Browse Source

Travis CI: disable package upload for external PR

Arseniy Shestakov 8 năm trước cách đây
mục cha
commit
0fd775151f
2 tập tin đã thay đổi với 11 bổ sung0 xóa
  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