Skip to content

Commit

Permalink
mark non-release as -dev
Browse files Browse the repository at this point in the history
  • Loading branch information
BrettMayson committed Nov 2, 2023
1 parent 0dc821e commit 1b646cb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ jobs:
profile: minimal
toolchain: stable
override: true
- run: ECHO "true" >> $RELEASE
if: startsWith(github.ref, 'refs/tags/')
- name: Rust Cache
uses: Swatinem/rust-cache@v2
with:
Expand Down
2 changes: 2 additions & 0 deletions bin/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ pub fn cli() -> Command {
.version({
let mut base = env!("CARGO_PKG_VERSION").to_string();
if option_env!("CI").is_none() {
base.push_str("-local");
} else if option_env!("RELEASE").is_none() {
base.push_str("-dev");
}
if cfg!(debug_assertions) {
Expand Down

0 comments on commit 1b646cb

Please sign in to comment.