owlcs / owlapi

OWL API main repository
821 stars 315 forks source link

Set up Travis auto deploy magic #644

Open sesuncedu opened 7 years ago

sesuncedu commented 7 years ago

Travis can be set up to magically deploy stuff and things following successful builds, when tags are pushed, etc.

There are two pre-packaged github deployment types. One creates a release file when a tag is pushed to master. The other force-pushes the contents of a directory to (by default) gh-pages.

It is also possible to create a custom script that does more controlled deployment actions.

GitHub credentials can be stored in an environment variable, which can set up on the travis config page, or stored in encrypted form in the. travis.yml file (the variable will not be decrypted in forks). These encrypted variables are created using the travis client, which is a ruby gem. If you're on Ubuntu, you may need to install the ruby-dev package. I have an irrationally strong dislike of Ruby, probably because it almost gets things right but makes some fatal mistake. call/cc ? Yay. call/cc without last call optimization? Um...

ykazakov commented 6 years ago

FYI, we use travis to deploy snapshots to the sanotype repo. This way one can use the latest snapshots in other projects. You can see an example configuration, e.g., here.