Merge pull request #2164 from IDEMSInternational/update-flow #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################################################################################## | ||
# About | ||
################################################################################## | ||
# Reuseable workflow to be called from content repos. | ||
# Creates a internal release in play console | ||
# | ||
# Version : 1.0 | ||
# | ||
################################################################################## | ||
# Configuration | ||
################################################################################## | ||
env: | ||
APP_ID: ${{vars.APP_ID}} | ||
GOOGLE_PLAY_SERVICE_ACCOUNT_JSON: ${{secrets.GOOGLE_PLAY_SERVICE_ACCOUNT_JSON}} | ||
################################################################################## | ||
# Main Code | ||
################################################################################## | ||
name: Android - Release to Google Play | ||
on: | ||
workflow_call: | ||
jobs: | ||
build: | ||
uses: ./.github/workflows/reusable-android-build.yml | ||
secrets: inherit | ||
release: | ||
needs: build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Download Build Artifact | ||
id: download | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: release_bundle | ||
path: ./ | ||
- name: Upload to Google play | ||
uses: r0adkll/[email protected] | ||
with: | ||
serviceAccountJsonPlainText: ${{ env.GOOGLE_PLAY_SERVICE_ACCOUNT_JSON}} | ||
packageName: ${{env.APP_ID}} | ||
releaseFiles: ${{steps.download.outputs.download-path}}/app-release.aab | ||
track: internal |