Skip to content
Snippets Groups Projects
Commit 4a566100 authored by Jonas Broeckmann's avatar Jonas Broeckmann
Browse files

CI app version changes

parent 85b5520a
Branches
Tags
No related merge requests found
......@@ -11,6 +11,8 @@ image: eclipse-temurin:17-jdk-jammy
variables:
APP_VERSION: "1.0.0"
# ANDROID_COMPILE_SDK is the version of Android you're compiling with.
# It should match compileSdkVersion.
ANDROID_COMPILE_SDK: "34"
......@@ -112,19 +114,21 @@ createRelease:
- job: assembleRelease
artifacts: true
rules:
- if: $CI_COMMIT_TAG # Run this job when a tag is created
- if: $CI_COMMIT_TAG # Run this job when a tag is created
before_script: []
script:
- echo "Creating a new release $CI_COMMIT_TAG"
- cp app/build/outputs/apk/release/app-release.apk kaffeekasse.apk
- echo "Creating a new release for version $APP_VERSION"
- cp app/build/outputs/apk/release/app-release.apk kaffeekasse-${CI_COMMIT_TAG}.apk
artifacts:
expire_in: never
paths:
- kaffeekasse.apk
release: # See https://docs.gitlab.com/ee/ci/yaml/#release for available properties
release: # See https://docs.gitlab.com/ee/ci/yaml/#release for available properties
tag_name: '$CI_COMMIT_TAG'
description: '$CI_COMMIT_TAG'
name: '$APP_VERSION'
description: '$APP_VERSION' # TODO: Add meaningful description
assets:
links:
- name: 'App'
url: '${CI_PROJECT_URL}/-/jobs/${CI_JOB_ID}/artifacts/raw/kaffeekasse.apk'
- name: 'kaffeekasse-${APP_VERSION}.apk'
url: '${CI_PROJECT_URL}/-/jobs/${CI_JOB_ID}/artifacts/raw/kaffeekasse-${APP_VERSION}.apk'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment