diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index c2f5a45..cec627d 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -2,8 +2,8 @@ name: deploy on: push: - tags: - - '*' + branches: + - main jobs: build: diff --git a/Makefile b/Makefile index 40320ca..e75df57 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,8 @@ +BLOCKFAST_VERS := $(shell date '+%Y-%m-%d') / $(shell git rev-parse --short HEAD) +export BLOCKFAST_VERS + build:: + echo $(BLOCKFAST_VERS) cargo build cargo clippy --all cargo fmt --all diff --git a/src/utils.rs b/src/utils.rs index 601f4a4..4b92b58 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -77,7 +77,7 @@ pub(crate) use log; name = "Blockfast", author = "pierre dubouilh ", arg_required_else_help = true, - version, + version = option_env!("BLOCKFAST_VERS").unwrap_or("unknown"), long_about = None, about = " Blockfast - block internets scanners fast 🍶