bump version and add tag automatically

This commit is contained in:
ibizaman 2024-11-22 21:13:26 +01:00
parent 9ecbbde35a
commit c690b0faf7
3 changed files with 21 additions and 1 deletions

19
.github/workflows/version.yaml vendored Normal file
View file

@ -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)"

1
VERSION Normal file
View file

@ -0,0 +1 @@
0.2.0

View file

@ -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 {};