From 57214179e71b1bb5abecb5ef6a0c9dcbb640efc9 Mon Sep 17 00:00:00 2001
From: Arkerthan <arkerthan@gmail.com>
Date: Thu, 18 Mar 2021 12:16:06 +0100
Subject: [PATCH] Always compile the HEAD of the default branch
 (pregmod-master)

---
 .gitlab-ci.yml | 6 +++++-
 README.md      | 2 +-
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 180b799b5dd..3e6e81376b3 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -19,7 +19,11 @@ variables:
 build:
   stage: build
   image: debian:latest
-  extends: .official-releases
+  rules:
+    # official release
+    - if: $CI_COMMIT_TAG =~ /\A\d+\.\d+\.\d+\z/
+    # latest
+    - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
   script:
     - ./compile.sh --ci --minify
   artifacts:
diff --git a/README.md b/README.md
index f5c3ae41633..be7f1ce0b26 100644
--- a/README.md
+++ b/README.md
@@ -4,7 +4,7 @@ Pregmod is a modification of the original [Free Cities](https://freecitiesblog.b
 
 ## Play the game
 
-You can download the game over on the [release page](https://gitgud.io/pregmodfan/fc-pregmod/-/releases)
+You can download compiled files and source archives from the [Releases page](https://gitgud.io/pregmodfan/fc-pregmod/-/releases), and the [build](https://gitgud.io/pregmodfan/fc-pregmod/-/jobs/artifacts/pregmod-master/download?job=build) from the latest commit to the master branch.
 
 Alternatively, you can build the game yourself:
 
-- 
GitLab