mirror of
https://codeberg.org/NextPush/nextpush-android.git
synced 2024-12-29 11:10:18 +01:00
35 lines
1.0 KiB
YAML
35 lines
1.0 KiB
YAML
steps:
|
|
check:
|
|
image: runmymind/docker-android-sdk:latest
|
|
when:
|
|
branch: main
|
|
event: [push, pull_request]
|
|
commands:
|
|
- ./gradlew assembleRelease ktlintCheck --stacktrace
|
|
|
|
build:
|
|
image: runmymind/docker-android-sdk:latest
|
|
when:
|
|
branch: main
|
|
event: tag
|
|
commands:
|
|
- export RELEASE_STORE_FILE=$PWD/release-key.jks
|
|
- echo $RELEASE_KEY | base64 -d > $RELEASE_STORE_FILE
|
|
- ./gradlew -Psign assembleRelease --stacktrace
|
|
- mv app/build/outputs/apk/release/app-release.apk app/build/outputs/apk/nextpush.apk
|
|
environment:
|
|
- RELEASE_KEY_ALIAS=nextpush
|
|
secrets: [ release_key, release_store_password, release_key_password ]
|
|
|
|
upload:
|
|
image: codeberg.org/s1m/woodpecker-upload:latest
|
|
when:
|
|
branch: main
|
|
event: tag
|
|
settings:
|
|
token:
|
|
from_secret: codeberg_token
|
|
file: app/build/outputs/apk/nextpush.apk
|
|
fastlane: true
|
|
|