26 lines
935 B
YAML
26 lines
935 B
YAML
name: apk
|
|
on: [ push ]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
container: mingc/android-build-box
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- run: curl -sSL -u "$USERNAME:$PASSWORD" -o app/$STORE_FILE https://cloud.crystalyx.net/remote.php/dav/files/$USERNAME/Bordel/$STORE_FILE
|
|
- run: sh gradlew lint build bundleRelease assembleRelease --no-daemon
|
|
- uses: akkuman/gitea-release-action@v1
|
|
if: gitea.ref_type == 'tag'
|
|
with:
|
|
files: |
|
|
app/build/outputs/apk/debug/app-debug.apk
|
|
app/build/outputs/apk/release/app-release.apk
|
|
app/build/outputs/bundle/release/app-release.aab
|
|
env:
|
|
USERNAME: ${{ secrets.USERNAME }}
|
|
PASSWORD: ${{ secrets.PASSWORD }}
|
|
STORE_FILE: ${{ secrets.STORE_FILE }}
|
|
STORE_PASSWORD: ${{ secrets.STORE_PASSWORD }}
|
|
KEY_ALIAS: ${{ secrets.KEY_ALIAS }}
|
|
KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }}
|