-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathgoldberg.pkl
More file actions
76 lines (66 loc) · 1.67 KB
/
goldberg.pkl
File metadata and controls
76 lines (66 loc) · 1.67 KB
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
amends "./pkl/Config.pkl"
import "https://cache.farthergate.com/Cache.pkl"
import "https://git.sr.ht/~aleksrutins/forester-theme/blob/main/Theme.pkl"
import "./pkl/presets/Files.pkl"
import "./pkl/presets/Forester.pkl"
import "./pkl/presets/Gradle.pkl"
import "./pkl/presets/Java.pkl"
import "./pkl/presets/Pkldoc.pkl"
import "./pkl/release/SourceHut.pkl"
name = "goldberg"
version = "0.5.3"
local buildDocs = new Listing {
module.single(new Step {
name = "theme:install"
commands = Theme.install.defaultSteps[0].commands
})
Files.copy("theme", "docs/theme")
Pkldoc.build("pkl", "docs/output/docs")
Forester.build("docs/forest.toml")
module.single(new Step {
local pr = Theme.transformToHTML("docs/output")
name = "theme:transform-html"
commands = pr.defaultSteps[0].commands
resources = pr.defaultSteps[0].resources
})
Files.copy("pkl", "docs/output")
}
local buildExe = new Listing {
Gradle.task("fatJar", true)
Java.makeJarExecutable(
"build/libs/" + module.versionedName + "-standalone.jar",
"com.farthergate.AppKt",
module.versionedName,
)
}
use {
outer.single(
outer.command(Cache.install(new Listing { "pkldoc"; "forester" }).defaultSteps[0].commands[0]),
)
...buildDocs
SourceHut.deployPages("docs/output", "goldberg.farthergate.com")
...buildExe
SourceHut.release(
source,
new Listing { module.versionedName },
"v" + version,
)
}
tasks {
["docs"] = buildDocs
["exe"] = buildExe
}
source {
repo = "goldberg"
}
ci {
oauth {
"git.sr.ht/OBJECTS:RW"
"git.sr.ht/PROFILE:RO"
"git.sr.ht/REPOSITORIES:RO"
"pages.sr.ht/PAGES:RW"
}
environment {
["CLICOLOR_FORCE"] = "always"
}
}