forked from holochain/holochain
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.nix
94 lines (76 loc) · 2.58 KB
/
config.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
{
# configure holonix itself
holonix = rec {
# true = use a github repository as the holonix base (recommended)
# false = use a local copy of holonix (useful for debugging)
use-github = true;
includeHolochainBinaries = false;
includeScaffolding = false;
includeTest = false;
includeNode = false;
includeDocs = false;
includeHapps = false;
includeRelease = false;
importFn = args: import ./holonix (args // ({
include = (args.include or { }) // {
scaffolding = args.include.scaffolding or includeScaffolding;
test = args.include.test or includeTest;
holochainBinaries = args.include.holochainBinaries or includeHolochainBinaries;
node = args.include.node or includeScaffolding;
docs = args.include.docs or includeDocs;
happs = args.include.happs or includeHapps;
release = args.include.release or includeRelease;
};
}));
};
release = {
hook = {
# sanity checks before deploying
# to stop the release
# exit 1
preflight = ''
hn-release-hook-preflight-manual
'';
# bump versions in the repo
version = ''
hn-release-hook-version-rust
hcp-release-hook-version
'';
# publish artifacts to the world
publish = ''
# crates are published from circle!
'';
};
# the commit hash that the release process should target
# this will always be behind what ends up being deployed
# the release process needs to add some commits for changelog etc.
commit = "8fb82a3a6d8cc69c95c654bd21bf15785a6ca291";
# the semver for prev and current releases
# the previous version will be scanned/bumped by release scripts
# the current version is what the release scripts bump *to*
version = {
current = "0.0.13";
# not used by version hooks in this repo
previous = "_._._";
};
github = {
# markdown to inject into github releases
# there is some basic string substitution {{ xxx }}
# - {{ changelog }} will inject the changelog as at the target commit
template = ''
{{ changelog }}
# Installation
Use Holonix to work with this repository.
See:
- https://github.com/holochain/holonix
- https://nixos.org/
'';
# owner of the github repository that release are deployed to
owner = "holochain";
# repository name on github that release are deployed to
repo = "holochain";
# canonical local upstream name as per `git remote -v`
upstream = "origin";
};
};
}