Skip to content

Commit

Permalink
update build script
Browse files Browse the repository at this point in the history
  • Loading branch information
mbusi committed Nov 25, 2021
1 parent 059160c commit 2d551f5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions deploy/build
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,15 @@ export ENV=$1
export AWS_DEFAULT_REGION="eu-west-1"
export VERSION="${DRONE_TAG:-$DRONE_COMMIT_SHA}"

version=$(grep -m1 version mix.exs | cut -d'"' -f2)

if [[ "$DRONE_TAG" != "$version" ]]; then
echo "Package version $version does not match release version $DRONE_TAG"
exit 1
fi

mix deps.get

mix hex.config api_key "$HEX_AUTH_KEY"
mix hex.user whoami
mix hex.publish --yes

0 comments on commit 2d551f5

Please sign in to comment.