From a9b8e9de222595e7b6d6abde5fc535535bb5482c Mon Sep 17 00:00:00 2001 From: Aleksandras Kostarevas Date: Fri, 22 Mar 2024 16:45:49 -0500 Subject: [PATCH] Update CI --- .gitlab-ci.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 869d861a6..3c3f7c185 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -14,11 +14,13 @@ build: stage: build tags: - docker - script: + before_script: + - git fetch origin master:master - export VERSION_NAME=`git describe --tags --dirty` - - export VERSION_CODE=`git rev-list --first-parent --count HEAD` + - export VERSION_CODE=`git rev-list --first-parent --count master` - echo $VERSION_CODE $VERSION_NAME - ./setUpPropertiesCI.sh + script: - gradle assembleRelease -s - mv build/outputs/apk/release/latinime-release.apk ./keyboard-$VERSION_NAME.apk - echo "Keyboard $VERSION_NAME - https://gitlab.futo.org/alex/latinime/-/jobs/$CI_JOB_ID/artifacts/raw/keyboard-$VERSION_NAME.apk"