nextpush-android/.woodpecker/main.yml

35 lines
1.0 KiB
YAML
Raw Normal View History

2023-06-05 23:06:05 +02:00
pipeline:
check:
image: runmymind/docker-android-sdk:latest
when:
branch: main
event: [push, pull_request]
commands:
- ./gradlew build --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