Deployment an elixir project with using TravisCI

This post was very helpful, but I noticed a few things that can be updated.

Accounting for these changes, and using the git clean -f command to address the git stash issue my deploy section ended up being a lot smaller:

deploy:
  provider: script
  script: >-
    mix deps.get &&
    mix hex.publish --yes &&
    git clean -f
  on:
    tags: true

This approach requires that you generate an API key from hex and then set it as travis ci environment variable (HEX_API_KEY)

1 Like