steps:
    check:
        image: runmymind/docker-android-sdk:latest
        when:
          branch: main
          event: [push, pull_request]
        commands:
          - ./gradlew assembleRelease ktlintCheck --stacktrace

    build:
        image: runmymind/docker-android-sdk:latest
        when:
          branch: main
          event: tag
        commands:
          - ./gradlew bundleRelease --stacktrace
          - mv app/build/outputs/bundle/release/app-release.aab sunup.aab

    upload:
        image: codeberg.org/s1m/woodpecker-upload:latest
        when:
            branch: main
            event: tag
        settings:
            token:
                from_secret: codeberg_token
            file: sunup.aab
            fastlane: true

