This post was very helpful, but I noticed a few things that can be updated.
- Travis CI deprecated
sudo: false
-
hex.publish
addedHEX_API_KEY
environment variable and--yes
flag 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
)