This post was very helpful, but I noticed a few things that can be updated.
- Travis CI deprecated
sudo: false -
hex.publishaddedHEX_API_KEYenvironment variable and--yesflag CI Updates (v0.18)
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)






















