How do I deploy a directory to GitHub with Travis CI? -


i deploy entire directory github release on successful build of project. however, when try provide directory file deploy option complains directory.

i not want list every file hand change on time , don't want have update .travis.yml file every time add/remove file to/from project.

it possible not using github releases correctly. previously, have released creating orphan tag contains files want release. hoping travis releases deployment simplify process.

.travis.yml:

deploy:   provider: releases   api_key: ${github_api_key}   file: "output/system"   skip_cleanup: true   on:     tags: true 

error:

/home/travis/.rvm/gems/ruby-1.9.3-p551/gems/octokit-3.8.0/lib/octokit/client/releases.rb:86:in `initialize': directory - output/system (errno::eisdir) 

you're looking use file_glob option, allows define wildcard in file definition. try this:

deploy:   provider: releases   api_key: ${github_api_key}   file_glob: true   file: "output/system/*"   skip_cleanup: true   on:     tags: true 

(see https://stackoverflow.com/a/28579635/834036)


Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -