Hackage Deployment

Travis CI supports uploading to Hackage.

A minimal configuration is:

deploy:
  provider: hackage
  username: "Hackage User Name"
  password: "Hackage Password"

It is recommended to encrypt password. Assuming you have the Travis CI command line client installed, you can do it like this:

$ travis encrypt --add deploy.password

You will be prompted to enter your api key on the command line.

You can also have the travis tool set up everything for you:

$ travis setup hackage

Keep in mind that the above command has to run in your project directory, so it can modify the .travis.yml for you.

Conditional releases

You can deploy only when certain conditions are met. See Conditional Releases with on:.