nextpush-android/.woodpecker/main.yml

35 lines
1.0 KiB
YAML
Raw Normal View History

2023-08-31 22:49:42 +02:00
steps:
2023-06-05 23:06:05 +02:00
check:
image: runmymind/docker-android-sdk:latest
when:
branch: main
event: [push, pull_request]
commands:
2023-09-05 22:53:03 +02:00
- ./gradlew assembleRelease ktlintCheck --stacktrace
2023-06-05 23:06:05 +02:00
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