change version numbering command

This commit is contained in:
Felix Ableitner 2019-11-16 01:30:35 +01:00
parent f396c6c940
commit 7c052f5334
3 changed files with 4 additions and 4 deletions

View File

@ -6,10 +6,10 @@ new_tag="$1"
git tag $new_tag git tag $new_tag
# Setting the version on the front end # Setting the version on the front end
echo "export let version: string = '$(git describe --tags --long)';" > "ui/src/version.ts" echo "export let version: string = '$(git describe --tags)';" > "ui/src/version.ts"
git add "ui/src/version.ts" git add "ui/src/version.ts"
# Setting the version on the backend # Setting the version on the backend
echo "pub const VERSION: &'static str = \"$(git describe --tags --long)\";" > "server/src/version.rs" echo "pub const VERSION: &'static str = \"$(git describe --tags)\";" > "server/src/version.rs"
git add "server/src/version.rs" git add "server/src/version.rs"
# Changing the docker-compose prod # Changing the docker-compose prod

View File

@ -1 +1 @@
pub const VERSION: &'static str = "v0.4.0-6-gd767e94"; pub const VERSION: &'static str = "v0.4.0-9-g409c0f9";

2
ui/src/version.ts vendored
View File

@ -1 +1 @@
export let version: string = 'v0.4.0.2-0-g062d7f2'; export let version: string = 'v0.4.0.2-6-gf396c6c';