mirror of
https://github.com/nix-community/disko.git
synced 2026-11-30 21:13:28 +01:00
disko cli: add --version command
Fixes #745 This adds a script to create a release. Running it will create two commits that would appear like this in `git log --oneline`: 67b5fff (master) release: reset released flag 0b808f3 (tag: v1.8.1) release: v1.8.1 100d2f3 docs: last change before release It also re-creates the `version.nix` file, which is used by the flake to determine the final version the disko CLI will print. If `disko --version` is run from exactly the commit tagged `v1.8.1`, it will print `1.8.1`. If it is run from any commit past that (like master), it will print `1.8.1-67b5fff`, and if it is run from a local folder with uncommitted changes, it will print `1.8.1-67b5fff-dirty`.
This commit is contained in:
1 parent
6af4e02b9c
commit
aee84b5fb3
7 files changed
+105
-8
No files matched your search
@@ -0,0 +1,18 @@
|
||||
{
|
||||
lib,
|
||||
writeShellApplication,
|
||||
bash,
|
||||
coreutils,
|
||||
git,
|
||||
nix-fast-build,
|
||||
}:
|
||||
writeShellApplication {
|
||||
name = "create-release";
|
||||
runtimeInputs = [
|
||||
bash
|
||||
git
|
||||
coreutils
|
||||
nix-fast-build
|
||||
];
|
||||
text = lib.readFile ./create-release.sh;
|
||||
}
|
||||
Reference in new issue
Block a user