Skip to content

Commit

Permalink
Merge pull request #20 from simplifi/auto_hex_upload
Browse files Browse the repository at this point in the history
automatic hex upload
  • Loading branch information
nathanmonteleone authored Oct 19, 2022
2 parents 651a460 + 5d5b9ee commit 717ff46
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,6 @@ install:

script:
- ./scripts/ci_build.sh

after_success:
- .travis/upload.sh
12 changes: 12 additions & 0 deletions .travis/upload.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash

set -e

# Upload packages to hex
# Only do so when a new version is tagged

if [[ ! -z "$TRAVIS_TAG" && "$TRAVIS_PULL_REQUEST" == "false" ]]; then
mix hex.publish --yes
else
echo "Skipping upload"
fi

0 comments on commit 717ff46

Please sign in to comment.