Skip to content

Commit

Permalink
don't patch versions for PRs (duh)
Browse files Browse the repository at this point in the history
  • Loading branch information
timothyb89 committed Jun 12, 2019
1 parent 0030272 commit f7b5e91
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,12 @@ jobs:
- run:
name: patch crate version
command: |
version=$(echo "$CIRCLE_TAG" | sed -e 's/^v//')
sed -i -e "s/version = \"0.1.0\"/version = \"$version\"/" Cargo.toml
if [[ -n "$CIRCLE_TAG" ]]; then
version=$(echo "$CIRCLE_TAG" | sed -e 's/^v//')
sed -i -e "s/version = \"0.1.0\"/version = \"$version\"/" Cargo.toml
cargo update -p woodchipper
cargo update -p woodchipper
fi
- run:
name: Build static linux x86_64
command: cargo build --release --locked
Expand Down Expand Up @@ -54,10 +56,12 @@ jobs:
- run:
name: patch crate version
command: |
version=$(echo "$CIRCLE_TAG" | sed -e 's/^v//')
sed -i -e "s/version = \"0.1.0\"/version = \"$version\"/" Cargo.toml
if [[ -n "$CIRCLE_TAG" ]]; then
version=$(echo "$CIRCLE_TAG" | sed -e 's/^v//')
sed -i -e "s/version = \"0.1.0\"/version = \"$version\"/" Cargo.toml
cargo update -p woodchipper
cargo update -p woodchipper
fi
- run:
name: Build windows x86_64
command: |
Expand Down

0 comments on commit f7b5e91

Please sign in to comment.