bump version and add tag automatically
This commit is contained in:
parent
9ecbbde35a
commit
c690b0faf7
3 changed files with 21 additions and 1 deletions
19
.github/workflows/version.yaml
vendored
Normal file
19
.github/workflows/version.yaml
vendored
Normal 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
1
VERSION
Normal file
|
|
@ -0,0 +1 @@
|
|||
0.2.0
|
||||
|
|
@ -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 {};
|
||||
|
|
|
|||
Loading…
Reference in a new issue