From afff6b0ba2fc8806b5fc614862ece620788b845a Mon Sep 17 00:00:00 2001 From: 44044 Date: Tue, 28 May 2019 16:41:24 +0800 Subject: [PATCH] upload to hex --- .travis.yml | 8 ++++++++ hex.sh | 14 ++++++++++++++ src/fieldmask.app.src | 2 +- 3 files changed, 23 insertions(+), 1 deletion(-) create mode 100755 hex.sh diff --git a/.travis.yml b/.travis.yml index fe09edf..2330830 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,5 +6,13 @@ otp_release: - 19.3 script: - rebar3 ct --readable=false +- rebar3 compile after_success: - rebar3 as test coveralls send +deploy: + provider: script + script: ./hex.sh + skip_cleanup: true + on: + tags: true + otp_release: "22.0" diff --git a/hex.sh b/hex.sh new file mode 100755 index 0000000..1915078 --- /dev/null +++ b/hex.sh @@ -0,0 +1,14 @@ +#!/usr/bin/env bash + +## Setup hex user +mkdir -p ~/.hex +echo '{username,<<"'${HEX_USERNAME}'">>}.' > ~/.hex/hex.config +echo '{key,<<"'${HEX_KEY}'">>}.' >> ~/.hex/hex.config + +## Add the rebar3 hex plugin to global +mkdir -p ~/.config/rebar3 +echo '{plugins, [rebar3_hex]}.' > ~/.config/rebar3/rebar.config + +rebar3 hex publish <