mirror of
https://github.com/yogeshpaliyal/KeyPass.git
synced 2026-01-05 16:36:31 -06:00
63 lines
1.5 KiB
YAML
63 lines
1.5 KiB
YAML
name: Deploy App CI
|
|
|
|
on:
|
|
push:
|
|
# branches:
|
|
# - master
|
|
tags:
|
|
- '*'
|
|
|
|
jobs:
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
|
|
- name: set up JDK 1.8
|
|
uses: actions/setup-java@v1
|
|
with:
|
|
java-version: 1.8
|
|
|
|
- name: Grant rights
|
|
run: chmod +x build.gradle
|
|
|
|
|
|
- name: Grant Gradlew rights
|
|
run: chmod +x gradlew
|
|
|
|
- name: Build with Gradle
|
|
id: build
|
|
run: ./gradlew build
|
|
|
|
- name: Build Release AAB
|
|
id: buildRelease
|
|
run: ./gradlew bundleProductionRelease
|
|
|
|
- name: Sign AAB
|
|
id: sign
|
|
uses: r0adkll/sign-android-release@fix/bundle-signing
|
|
with:
|
|
releaseDirectory: app/build/outputs/bundle/productionRelease
|
|
signingKeyBase64: ${{ secrets.SIGNING_KEY }}
|
|
alias: ${{ secrets.ALIAS }}
|
|
keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }}
|
|
keyPassword: ${{ secrets.KEY_PASSWORD }}
|
|
|
|
- name: Create service_account.json
|
|
id: createServiceAccount
|
|
run: echo '${{ secrets.SERVICE_ACCOUNT_JSON }}' > service_account.json
|
|
|
|
- name: Deploy to Play Store (BETA)
|
|
id: deploy
|
|
uses: r0adkll/upload-google-play@v1
|
|
with:
|
|
serviceAccountJson: service_account.json
|
|
packageName: com.yogeshpaliyal.keypass
|
|
releaseFile: app/build/outputs/bundle/productionRelease/app-production-release.aab
|
|
track: beta
|
|
whatsNewDirectory: whatsnew/
|