Skip to content

Commit 491efb2

Browse files
committed
release from CI
1 parent 8336275 commit 491efb2

3 files changed

Lines changed: 7 additions & 3 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ name: deploy
22

33
on:
44
push:
5-
tags:
6-
- '*'
5+
branches:
6+
- main
77

88
jobs:
99
build:

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1+
BLOCKFAST_VERS := $(shell date '+%Y-%m-%d') / $(shell git rev-parse --short HEAD)
2+
export BLOCKFAST_VERS
3+
14
build::
5+
echo $(BLOCKFAST_VERS)
26
cargo build
37
cargo clippy --all
48
cargo fmt --all

src/utils.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ pub(crate) use log;
7777
name = "Blockfast",
7878
author = "pierre dubouilh <pldubouilh@gmail.com>",
7979
arg_required_else_help = true,
80-
version,
80+
version = option_env!("BLOCKFAST_VERS").unwrap_or("unknown"),
8181
long_about = None,
8282
about = "
8383
Blockfast - block internets scanners fast 🍶

0 commit comments

Comments
 (0)