name: Android CI on: push: branches: [ as ] pull_request: branches: [ as ] jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - name: set up JDK 17 uses: actions/setup-java@v1 with: java-version: 17 - name: Gradle cache id: cache uses: actions/cache@v2 with: path: | ~/.gradle/ ~/.gradle/wrapper key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} restore-keys: | ${{ runner.os }}-gradle- - name: Build Debug APK run: | ./gradlew assembleDebug ./gradlew bundleRelease # - name: Upload app bundle as artifact # uses: actions/upload-artifact@v2 # with: # name: app-bundle # path: app/build/outputs/bundle/release/app-release.aab # https://github.com/marketplace/actions/upload-android-release-to-play-store uses: r0adkll/upload-google-play@v1 with: serviceAccountJsonPlainText: ${{ SERVICE_ACCOUNT_JSON }} packageName: me.yoqi.qrcode releaseFiles: app/build/outputs/bundle/release/app-release.aab track: production status: inProgress # inAppUpdatePriority: 2 userFraction: 0.99 # whatsNewDirectory: distribution/whatsnew # mappingFile: app/build/outputs/mapping/release/mapping.txt # debugSymbols: app/intermediates/merged_native_libs/release/out/lib # - name: Notify slack success # uses: craftech-io/slack-action@v1 # with: # slack_webhook_url: ${{ secrets.SLACK_NOTIFY }} # slack_channel: pipeline-ci-cd # status: ${{ job.status }} # if: always()