-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moves rebar3_hex setup from rebar.config to separate script
Due to rebar3_hex does not support config from rebar.config
- Loading branch information
Alexey Nikitin
committed
Aug 11, 2018
1 parent
28d51b8
commit 9ff2069
Showing
5 changed files
with
20 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/usr/bin/env bash | ||
|
||
# The script was taken from http://blog.erlware.org/automatic-hex-package-publishing-with-travis-ci/ | ||
|
||
## 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 <<EOF | ||
y | ||
EOF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters