bump justfile

This commit is contained in:
Σrebe - Romain GERARD 2023-12-01 22:27:01 +01:00
parent 91f9a84e89
commit 430f19acb2
No known key found for this signature in database
GPG key ID: 7A42B4B97E0332F4

View file

@ -3,15 +3,15 @@ set dotenv-load := false
_default: _default:
@just --list @just --list
make_release $VERSION: make_release $VERSION $FORCE="":
sed -i 's/^version = .*/version = "'$VERSION'"/g' Cargo.toml sed -i 's/^version = .*/version = "'$VERSION'"/g' Cargo.toml
cargo fmt --all -- --check --color=always || (echo "Use cargo fmt to format your code"; exit 1) cargo fmt --all -- --check --color=always || (echo "Use cargo fmt to format your code"; exit 1)
cargo clippy --all --all-features -- -D warnings || (echo "Solve your clippy warnings to succeed"; exit 1) cargo clippy --all --all-features -- -D warnings || (echo "Solve your clippy warnings to succeed"; exit 1)
git add Cargo.* git add Cargo.*
git commit -m 'Bump version v'$VERSION git commit -m 'Bump version v'$VERSION
git tag v$VERSION -m 'version v'$VERSION git tag $FORCE v$VERSION -m 'version v'$VERSION
git push git push
git push origin v$VERSION git push $FORCE origin v$VERSION
@just docker_release v$VERSION @just docker_release v$VERSION
docker_release $TAG: docker_release $TAG: