mirror of
https://codeberg.org/NextPush/nextpush-android.git
synced 2024-12-26 17:52:24 +01:00
Add woodpecker CI
This commit is contained in:
parent
0b66bfb57f
commit
82ad120109
34
.woodpecker/main.yml
Normal file
34
.woodpecker/main.yml
Normal file
@ -0,0 +1,34 @@
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user