deploy to play store setup
This commit is contained in:
parent
607642f235
commit
59f2f6ee0f
1 changed files with 59 additions and 0 deletions
59
.github/workflows/deploy_to_playstore.yml
vendored
Normal file
59
.github/workflows/deploy_to_playstore.yml
vendored
Normal file
|
|
@ -0,0 +1,59 @@
|
|||
name: Deploy to Play Store Internal Track
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
android-publish-to-play-store:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v3
|
||||
- name: Setup Java
|
||||
uses: actions/setup-java@v3
|
||||
with:
|
||||
distribution: 'adopt'
|
||||
java-version: '11'
|
||||
cache: gradle
|
||||
- name: Setup Node
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 16
|
||||
cache: 'npm'
|
||||
- name: Set up Ruby
|
||||
uses: ruby/setup-ruby@ec02537da5712d66d4d50a0f33b7eb52773b5ed1
|
||||
with:
|
||||
ruby-version: '3.2.1'
|
||||
- name: Setup Fastlane
|
||||
working-directory: ./android
|
||||
run: bundle install
|
||||
- name: node_modules cache
|
||||
uses: actions/cache@v3
|
||||
id: npm-cache
|
||||
with:
|
||||
path: node_modules
|
||||
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
|
||||
restore-keys: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
|
||||
- name: Install Dependencies
|
||||
run: npm ci
|
||||
- name: Restore Release Keystore
|
||||
env:
|
||||
keystore_base64: ${{ secrets.RELEASE_KEYSTORE_BASE64 }}
|
||||
run: |
|
||||
echo "$keystore_base64" | base64 --decode > release.keystore
|
||||
echo "CI_EVALUATION_KEYSTORE_FILE=`pwd`/release.keystore" >> $GITHUB_ENV
|
||||
- name: Restore PlayStore Service Account
|
||||
env:
|
||||
play_store_service_account_base64: ${{ secrets.PLAY_STORE_SERVICE_ACCOUNT_BASE64 }}
|
||||
run: |
|
||||
echo "$play_store_service_account_base64" | base64 --decode > play-store-distribution-service-account.json
|
||||
echo "CI_EVALUATION_PLAYSTORE_SERVICE_ACCOUNT_FILE=`pwd`/play-store-distribution-service-account.json" >> $GITHUB_ENV
|
||||
- name: Deploy to Play Store Internal Track
|
||||
env:
|
||||
CI_EVALUATION_KEY_ALIAS: ${{ secrets.CI_EVALUATION_KEY_ALIAS }}
|
||||
CI_EVALUATION_KEY_PASSWORD: ${{ secrets.CI_EVALUATION_KEY_PASSWORD }}
|
||||
CI_EVALUATION_STORE_PASSWORD: ${{ secrets.CI_EVALUATION_STORE_PASSWORD }}
|
||||
working-directory: ./android
|
||||
run: bundle exec fastlane deployProdPlayStore
|
||||
Loading…
Add table
Add a link
Reference in a new issue