From 0dbbe128a34bd006942a735c92a74f9189b9d249 Mon Sep 17 00:00:00 2001 From: Holden Date: Mon, 7 Oct 2024 07:23:29 -0400 Subject: [PATCH] CI: Create Android Play Store Action --- .github/actions/playstore/action.yml | 21 +++++++++++++++++++++ .github/workflows/android-linux.yml | 7 +++++++ 2 files changed, 28 insertions(+) create mode 100644 .github/actions/playstore/action.yml diff --git a/.github/actions/playstore/action.yml b/.github/actions/playstore/action.yml new file mode 100644 index 000000000000..d3364f9d8b18 --- /dev/null +++ b/.github/actions/playstore/action.yml @@ -0,0 +1,21 @@ +name: Publish Android Build to Play Store +description: Checks out the QGC repo with all the correct settings +inputs: + artifact: + description: Build File To Upload + required: true + service_account_json: + description: The service account json private key file to authorize the upload request + required: true +runs: + using: "composite" + steps: + - name: Deploy to Play Store + if: ${{ github.event_name != 'pull_request' && github.ref_name == 'master' }} + uses: r0adkll/upload-google-play@v1 + with: + serviceAccountJsonPlainText: ${{ inputs.service_account_json }} + packageName: com.mavlink.qgroundcontrol + releaseFiles: ${{ inputs.artifact }} + track: production + status: completed diff --git a/.github/workflows/android-linux.yml b/.github/workflows/android-linux.yml index c31977a654c5..be85b07fd790 100644 --- a/.github/workflows/android-linux.yml +++ b/.github/workflows/android-linux.yml @@ -100,3 +100,10 @@ jobs: aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} source: '' github_token: ${{ secrets.GITHUB_TOKEN }} + + # - name: Deploy to Play Store + # if: matrix.BuildType == 'Release' + # uses: ./.github/actions/playstore + # with: + # artifact_name: ${{ runner.temp }}/shadow_build_dir/${{ env.ARTIFACT }} + # service_account_json: ${{ secrets.SERVICE_ACCOUNT }}