expose lila version on lichess.org/source - closes #6305, closes #6292

pull/6318/head
Thibault Duplessis 2020-04-05 15:54:56 -05:00
parent c5cf9b9179
commit 21a6ef4834
5 changed files with 11 additions and 2 deletions

View File

@ -35,6 +35,7 @@ jobs:
- uses: olafurpg/setup-scala@49fc8c734ef6916b4e1da8ba8d81bb26a2b46a06 # v7
with:
java-version: openjdk@1.13.0-2
- run: echo "app.version = \"\"\"$(git log -1 --pretty='format:%h / %ar / %s')\"\"\"" > conf/version.conf
- run: ./lila -Depoll=true "test;dist"
- run: unzip target/universal/lila-3.0.zip
- run: cp LICENSE COPYING.md README.md lila-3.0 && git log -n 1 --pretty=oneline > lila-3.0/commit.txt

1
.gitignore vendored
View File

@ -1,5 +1,6 @@
.sbtopts
conf/application.conf
conf/version.conf
logs
project/project

View File

@ -85,6 +85,7 @@ final class Env(
val isStage = config.get[Boolean]("app.stage")
val explorerEndpoint = config.get[String]("explorer.endpoint")
val tablebaseEndpoint = config.get[String]("explorer.tablebase.endpoint")
val appVersion = config.get[String]("app.version")
def net = common.netConfig

View File

@ -34,12 +34,17 @@ object help {
contentCls = "page"
)(
frag(
div(cls := "box box-pad body")(
st.section(cls := "box box-pad body")(
h1(title),
raw(~doc.getHtml("doc.content", resolver))
),
br,
div(cls := "box")(freeJs())
st.section(cls := "box box-pad")(
h1("lila version"),
pre(env.appVersion)
),
br,
st.section(cls := "box")(freeJs())
)
)
}

View File

@ -1,3 +1,4 @@
include "base"
include "version"
# override values from base.conf here