Infinity-For-Lemmy/.woodpecker/build.yaml
2024-08-06 08:23:29 +02:00

31 lines
815 B
YAML

steps:
build:
image: android-34-jdk11:android-33-jdk11
commands:
- apk add --no-cache python3
- ./gradlew :app:assembleRelease
when:
path: [ app/**, build.gradle ]
sign:
image: alvrme/alpine-android:android-34-jdk11
commands:
- ./scripts/apk-sign.sh Eternity-signed.apk app/build/outputs/apk/release/app-release-unsigned.apk
secrets: [ APK_KS_PASS, APK_KS, APK_KS_ALIAS ]
when:
event: [ tag ]
publish:
image: woodpeckerci/plugin-gitea-release
settings:
base_url: https://codeberg.org
files:
- Eternity-signed.apk
api_key:
from_secret: GITEA_ACCESS_TOKEN
target: main
prerelease: true
note: "Pending release notes..."
when:
event: [ tag ]
when:
event: [ push, tag, pull_request ]