2021-08-08 20:58:08 +00:00
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: default
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: build
|
|
|
|
image: mingc/android-build-box
|
|
|
|
commands:
|
2022-09-16 14:36:23 +00:00
|
|
|
- curl -sSL -u "$USERNAME:$PASSWORD" -o app/$STORE_FILE https://cloud.crystalyx.net/remote.php/dav/files/$USERNAME/Bordel/$STORE_FILE
|
2022-09-21 11:58:57 +00:00
|
|
|
- sh gradlew build bundleRelease assembleRelease --no-daemon
|
2021-08-09 08:26:21 +00:00
|
|
|
environment:
|
|
|
|
USERNAME:
|
|
|
|
from_secret: nextcloud_user
|
|
|
|
PASSWORD:
|
|
|
|
from_secret: nextcloud_password
|
2022-09-16 14:29:42 +00:00
|
|
|
STORE_FILE:
|
2021-08-09 08:26:21 +00:00
|
|
|
from_secret: android_keyfile
|
2022-09-16 14:29:42 +00:00
|
|
|
STORE_PASSWORD:
|
|
|
|
from_secret: android_keypass
|
|
|
|
KEY_ALIAS:
|
2021-08-09 08:26:21 +00:00
|
|
|
from_secret: android_keyalias
|
2022-09-16 14:29:42 +00:00
|
|
|
KEY_PASSWORD:
|
2021-08-09 08:26:21 +00:00
|
|
|
from_secret: android_keypass
|
2021-08-08 20:58:08 +00:00
|
|
|
- name: release
|
|
|
|
image: plugins/gitea-release
|
|
|
|
settings:
|
|
|
|
api_key:
|
|
|
|
from_secret: gitea_token
|
|
|
|
base_url: https://git.crystalyx.net
|
|
|
|
files:
|
2021-08-09 06:56:39 +00:00
|
|
|
- app/build/outputs/apk/debug/app-debug.apk
|
2022-09-16 14:29:42 +00:00
|
|
|
- app/build/outputs/apk/release/app-release.apk
|
2021-08-09 06:56:39 +00:00
|
|
|
- app/build/outputs/bundle/release/app-release.aab
|
2021-08-08 20:58:08 +00:00
|
|
|
when:
|
|
|
|
event: tag
|