diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..f9bfb78 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,32 @@ +branches: + only: + - develop + +language: node_js + +sudo: false + +node_js: stable + +cache: + directories: + - node_modules + +before_install: +- git config --global user.name "viko16" +- git config --global user.email "16viko@gmail.com" +- git clone --branch try-pages https://github.com/viko16/vue-ghpages-blog.git dist + +install: +- npm install +- npm run build + +script: +- cd dist +- git add --all . +- git commit --message "automatically update by travis" +- git push --force "https://${GH_TOKEN}@github.com/viko16/vue-ghpages-blog.git" try-pages:try-pages + +env: + global: + secure: WqfWUhFFiwvc7KbYQB/CTRTbSqbPjd7XBxO/SCdEn/6e3pazx/Co8K1xyuX4yU7QpT5tYotNJK9N47f+gHbzvySTfYbtPWA2rwZXT9JXQZcBuKxeY6mD47HgFzJhtey9JUSJEn6X7MIYrM6p7ZZSgzMcd/ldfYyA4SzRKgVPfxOCt6wZMAaBH0EEBT4DBT/BCh9ibjpyAA6z64HjXi43dxCgQCr7VGJN1C0K0rVr/a+oh7aIeRzzVGRdxmawEn7cS5xQ3DGC94DZp5L7E0omcGTVM2hsu2MoKQaN7W+IZNFGvsXbHk6ubzpSo7FNmtFlwVXHZIUU6JQWr6tVNr07OeJsYxAp884YfBgcKcVdwktQTSU5jUfzhKToufmKEA9SuVpmrhHWSmipvtxQptf36CJM1rjTmfZuMgqSKGrQJWuuHzMXaO1ibIYRJRZDEOBhZ1yye+nGrsGeEAofnaQ+c0wGOPTS0n7Ufofh8X1qUW4AU5sw0YiJJCUuXa7CMFK5spSorr2ZQanJ8loqLb2/s9uMQP8r9gJOqIb2QwnPin3O1Te1YkhPZRt22GLS64cIT+fUF0ae3XkmV8RoRMUCGjmxY9RUd4OzqGhArgnyYCPes8hwmhQGA0j30FNkFAREaK0U1L6gTYVS0/uoS4bB0SMoxKcMrQBeNlaQUY/ngfw=