Skip to content

Commit

Permalink
set version numbers from Git tags
Browse files Browse the repository at this point in the history
  • Loading branch information
Svedrin committed Jul 24, 2020
1 parent cb5d90e commit d83fb5c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
11 changes: 10 additions & 1 deletion .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,15 @@ kind: pipeline
name: default

steps:
- name: set version in Cargo.toml
image: rust:alpine
commands:
- echo "Setting Cargo.toml to version $DRONE_TAG:"
- sed -i -e "s/99\.99\.9/$(echo $DRONE_TAG | tr -d 'v')/" Cargo.toml
- cat Cargo.toml
when:
event: tag

- name: build Rust version
image: rust:alpine
commands:
Expand Down Expand Up @@ -43,6 +52,6 @@ steps:
- pull_request
---
kind: signature
hmac: f4c306be9f3da10954bf1b98577846e87c768bfb20986778f9eef0ebad4a08ab
hmac: 1803e96c89318f604877c013907bfe34d50314a8f7dd16814adc69fe3330b415

...
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "lagerist"
version = "0.1.5"
version = "99.99.9"
authors = ["Michael Ziegler <[email protected]>"]
edition = "2018"

Expand Down

0 comments on commit d83fb5c

Please sign in to comment.