Files
AuroraStore/.gitlab-ci.yml
ggabr 68628e8fd0 Export the database schema
Also set .gitlab-ci.yml to publish them at every build for convenience.

The exports should be committed (manually) to the git repository right after an
increase in database version.

Having the exports enables using autoMigrations when possible, for the future
database migrations.
2025-02-16 07:34:24 +01:00

29 lines
811 B
YAML

variables:
PACKAGE_VERSION: "continuous"
DEBUG_BINARY: "com.aurora.store.debug_${CI_COMMIT_SHORT_SHA}.apk"
DEBUG_BINARY_PATH: "app/build/outputs/apk/debug/app-debug.apk"
PACKAGE_REGISTRY_URL: "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/debug/${PACKAGE_VERSION}"
stages:
- build
- upload
- release
assembleDebug:
stage: build
image: theimpulson/gitlab-ci-android:latest
script:
- './gradlew assembleDebug'
artifacts:
paths:
- $DEBUG_BINARY_PATH
- 'app/schemas/com.aurora.store.data.room.AuroraDatabase/'
uploadDebug:
stage: upload
image: curlimages/curl:latest
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
script:
- 'curl --header "JOB-TOKEN: ${CI_JOB_TOKEN}" --upload-file ${DEBUG_BINARY_PATH} ${PACKAGE_REGISTRY_URL}/${DEBUG_BINARY}'