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 7722612 commit b6fe6cc
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions deploy/build
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@ 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"
Expand Down

0 comments on commit b6fe6cc

Please sign in to comment.