Skip to content

Commit

Permalink
Merge pull request #19 from HewlettPackard/release-attempt5
Browse files Browse the repository at this point in the history
Fix sed expression and remove leading `v` from cargo versions
  • Loading branch information
timothyb89 authored Jun 12, 2019
2 parents 0a0fbf5 + fa27100 commit ffdd849
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
9 changes: 5 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,15 +89,16 @@ jobs:
- image: rust:1.35-slim
steps:
- checkout
- run:
name: patch version
command: |
sed -i -e "s/version = "0.1.0"/version = \"${CIRCLE_TAG}\"/" Cargo.toml
- run:
name: install build dependencies
command: |
apt-get update
apt-get install -y xorg-dev python3 libxcb-shape0-dev libxcb-xfixes0-dev libxcb-render0-dev libssl-dev
- run:
name: patch version
command: |
version=$(echo "$CIRCLE_TAG" | sed -e 's/^v//')
sed -i -e "s/version = \"0.1.0\"/version = \"$version\"/" Cargo.toml
- run:
name: cargo publish
command: cargo publish --allow-dirty --locked
Expand Down
4 changes: 3 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
[package]
name = "woodchipper"
version = "0.1.0"
authors = ["Tim Buckley <[email protected]>"]
edition = "2018"
license = "MIT"
Expand All @@ -11,6 +10,9 @@ description = "An interactive command-line log processor"
exclude = [".circleci/**/*"]
readme = "README.md"

# NOTE: do not change the version here, it will be patched by the deployment job
version = "0.1.0"

[badges]
circle-ci = { repository = "HewlettPackard/woodchipper", branch = "master" }

Expand Down

0 comments on commit ffdd849

Please sign in to comment.