SetAsWallpaper/.drone.yml
2022-09-21 11:58:57 +00:00

36 lines
1.0 KiB
YAML

kind: pipeline
type: docker
name: default
steps:
- name: build
image: mingc/android-build-box
commands:
- curl -sSL -u "$USERNAME:$PASSWORD" -o app/$STORE_FILE https://cloud.crystalyx.net/remote.php/dav/files/$USERNAME/Bordel/$STORE_FILE
- sh gradlew build bundleRelease assembleRelease --no-daemon
environment:
USERNAME:
from_secret: nextcloud_user
PASSWORD:
from_secret: nextcloud_password
STORE_FILE:
from_secret: android_keyfile
STORE_PASSWORD:
from_secret: android_keypass
KEY_ALIAS:
from_secret: android_keyalias
KEY_PASSWORD:
from_secret: android_keypass
- name: release
image: plugins/gitea-release
settings:
api_key:
from_secret: gitea_token
base_url: https://git.crystalyx.net
files:
- app/build/outputs/apk/debug/app-debug.apk
- app/build/outputs/apk/release/app-release.apk
- app/build/outputs/bundle/release/app-release.aab
when:
event: tag