diff --git a/.travis.yml b/.travis.yml index 46d3d84c..41bb3583 100644 --- a/.travis.yml +++ b/.travis.yml @@ -20,6 +20,6 @@ before_install: - export PATH=$HOME/.yarn/bin:$PATH after_success: - - ./qshell account $AK $SK liyang - - ./qshell qupload qiniu-config - - ./qshell cdnrefresh --dirs -i cdnrefresh-dirs.txt \ No newline at end of file + - ./deploy/qshell account $AK $SK liyang + - ./deploy/qshell qupload ./deploy/upload.conf + - ./deploy/qshell cdnrefresh --dirs -i ./deploy/cdnrefresh.txt \ No newline at end of file diff --git a/cdnrefresh-dirs.txt b/deploy/cdnrefresh.txt similarity index 100% rename from cdnrefresh-dirs.txt rename to deploy/cdnrefresh.txt diff --git a/qshell.REMOVED.git-id b/deploy/qshell.REMOVED.git-id similarity index 100% rename from qshell.REMOVED.git-id rename to deploy/qshell.REMOVED.git-id diff --git a/deploy/upload.conf b/deploy/upload.conf new file mode 100644 index 00000000..a3d25c0a --- /dev/null +++ b/deploy/upload.conf @@ -0,0 +1,11 @@ +{ + "src_dir" : "/home/travis/build/d2-projects/d2-admin/dist", + "bucket" : "fairyever-site", + "key_prefix" : "d2-admin/preview/", + "ignore_dir" : false, + "overwrite" : true, + "check_exists" : true, + "check_hash" : true, + "check_size" : true, + "rescan_local" : true +} \ No newline at end of file diff --git a/qiniu-config b/qiniu-config deleted file mode 100644 index 54da4289..00000000 --- a/qiniu-config +++ /dev/null @@ -1,19 +0,0 @@ -{ - "src_dir" : "/home/travis/build/d2-projects/d2-admin/dist", - "bucket" : "fairyever-site", - "key_prefix" : "d2-admin/preview/", - "ignore_dir" : false, - "overwrite" : true, - "check_exists" : true, - "check_hash" : true, - "check_size" : true, - "rescan_local" : true, - "skip_file_prefixes" : "test,demo,", - "skip_path_prefixes" : "hello/,temp/", - "skip_fixed_strings" : ".svn,.git", - "skip_suffixes" : ".DS_Store,.exe", - "log_file" : "upload.log", - "log_level" : "info", - "log_rotate" : 1, - "log_stdout" : false -} \ No newline at end of file