diff --git a/.github/workflows/version.yaml b/.github/workflows/version.yaml new file mode 100644 index 0000000..3b98c4d --- /dev/null +++ b/.github/workflows/version.yaml @@ -0,0 +1,19 @@ +name: Version Bump + +on: + push: + # branches: + # - main + paths: + - VERSION + +jobs: + create-tag: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 1 + - uses: rickstaa/action-create-tag@v1.7.2 + with: + tag: "$(cat VERSION)" diff --git a/VERSION b/VERSION new file mode 100644 index 0000000..341cf11 --- /dev/null +++ b/VERSION @@ -0,0 +1 @@ +0.2.0 \ No newline at end of file diff --git a/flake.nix b/flake.nix index d72ff8c..3bb3943 100644 --- a/flake.nix +++ b/flake.nix @@ -72,7 +72,7 @@ packages.manualHtml = pkgs.callPackage ./docs { inherit nmdsrc; allModules = allModules ++ contractDummyModules; - release = "0.0.1"; + release = builtins.readFile ./VERSION; }; lib.contracts = pkgs.callPackage ./modules/contracts {};