diff --git a/README.md b/README.md index 1c7463c..c347689 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # config-mapper [![License](https://img.shields.io/badge/license-MIT-blue)](https://gitea.antoine-langlois.net/DataHearth/config-mapper/src/branch/main/LICENSE) -[![Version](https://img.shields.io/badge/version-v0.6.1-blue)](https://gitea.antoine-langlois.net/DataHearth/config-mapper/tags) +[![Version](https://img.shields.io/badge/version-v0.6.2-blue)](https://gitea.antoine-langlois.net/DataHearth/config-mapper/tags) `config-mapper` is CLI utility tool to help you manage your configuration between UNIX systems. It provides a set of tools to load your configuration from a system, save it into a git repository and then save it to a new system. This configuration can be a set of files, folders or even dependencies. diff --git a/justfile b/justfile index 5a319ba..5b60fc1 100644 --- a/justfile +++ b/justfile @@ -1,12 +1,17 @@ set dotenv-load set shell := ["zsh", "-uc"] +latest-tag := `git describe --tags --abbrev=0` + default: @just --list -publish version: - sd $(git describe --tags --abbrev=0) {{version}} cmd/cli.go +publish version: (bump-files-version version) git-chglog --next-tag {{version}} --output CHANGELOG.md git add CHANGELOG.md cmd/cli.go && git commit -m "chore(changelog): release {{version}}" git tag -a {{version}} -m "{{version}}" - git push --follow-tags \ No newline at end of file + git push --follow-tags + +bump-files-version version: + sd {{latest-tag}} {{version}} cmd/cli.go + sd {{latest-tag}} "version-{{version}}-blue" CHANGELOG.md \ No newline at end of file