diff --git a/deploy/build b/deploy/build index ebbd19b..c629629 100755 --- a/deploy/build +++ b/deploy/build @@ -24,7 +24,7 @@ export ENV=$1 export AWS_DEFAULT_REGION="eu-west-1" export VERSION="${DRONE_TAG:-$DRONE_COMMIT_SHA}" -version=$(grep -m1 version Cargo.toml | cut -d'"' -f2) +version=$(grep -m1 '^version' Cargo.toml | cut -d'"' -f2) if [[ "$DRONE_TAG" != "$version" ]]; then echo "Package version $version does not match release version $DRONE_TAG" @@ -33,4 +33,4 @@ fi git checkout . cargo login "$CARGO_AUTH_KEY" -cargo publish --all-features +cargo publish