Skip to content

Commit

Permalink
feat(Travis): add support for publishing git releases to hex
Browse files Browse the repository at this point in the history
  • Loading branch information
SpaceEEC committed May 19, 2018
1 parent f0ad307 commit 10555e6
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
sudo: false

language: elixir
elixir: '1.6.4'
otp_release: '20.3'

script:
- mix format --check-formatted
- mix test --no-start

deploy:
skip_cleanup: true
provider: script
script: bash deploy/deploy.sh
on:
tags: true
branch: master
7 changes: 7 additions & 0 deletions deploy/deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
mix deps.get &&
mix local.hex --force &&
mkdir -p ~/.hex/ &&
echo "$HEX_ENCRYPTED_TOKEN" >> ~/.hex/hex.config &&
echo "$HEX_LOCAL_PASSPHRASE" | mix hex.publish --no-confirm &&
mix clean &&
mix deps.clean --all

0 comments on commit 10555e6

Please sign in to comment.