futokb/.gitlab-ci.yml

29 lines
921 B
YAML
Raw Normal View History

2023-08-11 21:03:20 +01:00
default:
2024-01-15 19:13:33 +00:00
image: "docker.io/abb128/android-build:v3@sha256:fc062b587302a66902b2abb463d886b53ec173e157d8297d16b9f00bce4633e7"
2023-08-11 21:03:20 +01:00
2023-08-31 21:00:28 +01:00
variables:
GIT_SUBMODULE_STRATEGY: recursive
2023-08-31 21:01:50 +01:00
GIT_SUBMODULE_FORCE_HTTPS: "true"
2024-03-22 21:13:09 +00:00
GIT_STRATEGY: clone
GIT_DEPTH: 0
2023-08-31 21:00:28 +01:00
2023-08-11 21:03:20 +01:00
stages: # List of stages for jobs, and their order of execution
- build
build:
stage: build
tags:
- docker
script:
2024-03-22 20:55:59 +00:00
- export VERSION_NAME=`git describe --tags --dirty`
- export VERSION_CODE=`git rev-list --first-parent --count master`
2023-08-31 20:48:35 +01:00
- ./setUpPropertiesCI.sh
2023-08-11 21:03:20 +01:00
- gradle assembleRelease -s
2024-03-22 20:55:59 +00:00
- 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"
- echo $VERSION_CODE $VERSION_NAME
2023-08-11 21:03:20 +01:00
artifacts:
2024-03-22 20:55:59 +00:00
name: "keyboard-$VERSION_NAME"
paths:
2023-08-11 21:03:20 +01:00
- ./*.apk
when: manual