From 0f1820aca6c400e056240ffef6e7f65b9eeb3952 Mon Sep 17 00:00:00 2001
From: David Byers <david.byers@liu.se>
Date: Mon, 8 Feb 2021 16:04:49 +0100
Subject: [PATCH] Include build version on site.

---
 .gitlab-ci.yml  | 1 +
 site/index.html | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 617ca6f..de06d34 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -134,6 +134,7 @@ pages:
   script:
     - cp -r site .public
     - sed -i -e "s/%BUILDDATE%/$(date +'%Y-%m-%d %H:%M')/g" .public/index.html
+    - sed -i -e "s/VERSION%/$(cat version)/g" .public/index.html
     - cp safelinks-cleaner-*.xpi .public
     - mv .public public
     - ls -lr public
diff --git a/site/index.html b/site/index.html
index 2c3eccf..b550169 100644
--- a/site/index.html
+++ b/site/index.html
@@ -31,7 +31,7 @@
             Links. Download the stable extension using your browser or
             mail program, or join the beta crowd here.
 	    <br />
-	    <span class="small">Most recent build: %BUILDDATE% UTC</span>
+	    <span class="small">Most recent build: %VERSION% (%BUILDDATE% UTC)</span>
           </div><!--//tagline-->
         </div><!--//container-->
       </header><!--//header-->
-- 
GitLab