Skip to content

Commit

Permalink
Fix version grep in build script (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
cottinisimone authored Jun 21, 2022
1 parent 120fe4b commit e7d487e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deploy/build
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -33,4 +33,4 @@ fi

git checkout .
cargo login "$CARGO_AUTH_KEY"
cargo publish --all-features
cargo publish

0 comments on commit e7d487e

Please sign in to comment.