Merge branch 'hotfix/cdn' into develop

Former-commit-id: 59a0e076eb2d23ee40ac033895965eb275d899a2 [formerly 59a0e076eb2d23ee40ac033895965eb275d899a2 [formerly 59a0e076eb2d23ee40ac033895965eb275d899a2 [formerly 59a0e076eb2d23ee40ac033895965eb275d899a2 [formerly 0a0284b74f5b027f9a6a03f32bb11f51e12012b2 [formerly 82ac38fd3804b9e1afe3e9e5611506e61a834f4c]]]]]
Former-commit-id: 3f476e9aced80dc1cbb83716a144d5fc9ff0a857
Former-commit-id: 3bc29dc8ae9384ea8143aaaf04de170bf49872fe
Former-commit-id: 045af7838986ef42c724c78a135e7a476916f000 [formerly f81478731f855924f898f778688817b78b0a69a0]
Former-commit-id: 80a4551946e7f1576fdc6ad6da84f229705d80e1
Former-commit-id: beacc44b35a0dfde767e24f3b8e69eabdb20fa64
Former-commit-id: 4301461cd97b9a52751c15e896fee9facfd83b69
Former-commit-id: ae7c921d275e850475c86666fe337883cb0cfa79
Former-commit-id: 7abb4010f6bfd7bda505160ed61d902b3da6bc6f
This commit is contained in:
liyang
2018-10-23 13:51:57 +08:00
4 changed files with 29 additions and 8 deletions

View File

@@ -1,5 +1,6 @@
language: node_js
node_js: stable
cache:
directories:
- "node_modules"
@@ -11,11 +12,11 @@ branches:
script:
- npm run build:travis
deploy:
provider: pages
local-dir: dist
skip-cleanup: true
github-token: $GITHUB_TOKEN
keep-history: true
on:
branch: master
before_install:
- ./qshell account $AK $SK
- curl -o- -L https://yarnpkg.com/install.sh | bash
- export PATH=$HOME/.yarn/bin:$PATH
after_success:
- ./qshell qupload qiniu-config
- ./qshell cdnrefresh -dirs cdnrefresh-dirs.txt

1
cdnrefresh-dirs.txt Normal file
View File

@@ -0,0 +1 @@
http://d2admin.fairyever.com/

18
qiniu-config Normal file
View File

@@ -0,0 +1,18 @@
{
"src_dir" : "/home/travis/build/d2-projects/d2-admin/dist",
"bucket" : "d2-admin",
"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
}

1
qshell.REMOVED.git-id Normal file
View File

@@ -0,0 +1 @@
fd53ac81035ca2b6e7b5252caed08eff24e23002