Skip to content

Update CI

Update CI #9

name: Deploy to Prod
on:
pull_request:
branches:
- master
types:
- closed
jobs:
deploy:
if: github.event.pull_request.merged == true && startsWith(github.event.pull_request.base.ref, 'release/')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: set up JDK
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: gradle
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Assemble Release Bundle
run: ./gradlew bundleRelease
- name: Sign Release Bundle
uses: r0adkll/sign-android-release@v1
with:
releaseDirectory: app/build/outputs/bundle/release
signingKeyBase64: ${{ secrets.SIGNING_KEY }}
alias: ${{ secrets.ALIAS }}
keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }}
keyPassword: ${{ secrets.KEY_PASSWORD }}
- name: Create service_account.json
run: echo '${{ secrets.SERVICE_ACCOUNT_JSON }}' > service_account.json
- name: Deploy To PlayStore
uses: r0adkll/upload-google-play@v1
with:
serviceAccountJson: service_account.json
packageName: com.sedsoftware.blinktracker
releaseFiles: app/build/outputs/bundle/release/com.sedsoftware.blinktracker-release.aab
mappingFile: app/build/outputs/mapping/release/mapping.txt
track: production
whatsNewDirectory: distribution/whatsnew