Skip to content

Create artifact

Create artifact #19

Workflow file for this run

name: Deploy Play Store
on:
push:
branches:
- '**'
jobs:
build:
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: Prepare Env
env:
KEY: ${{ secrets.BANJEN_SIGN_KEY }}
BANJEN_SIGN_PWD: ${{ secrets.BANJEN_SIGN_PWD }}
BANJEN_SIGN_ALIAS: ${{ secrets.BANJEN_SIGN_ALIAS }}
BANJEN_SIGN_PATH: ${{ secrets.BANJEN_SIGN_PATH }}
BANJEN_ADS_UNIT_ID_BANNER: ${{ secrets.BANJEN_ADS_UNIT_ID_BANNER }}
BANJEN_ADMOB_APP_ID: ${{ secrets.BANJEN_ADMOB_APP_ID }}
GOOGLE_SERVICES: ${{ secrets.GOOGLE_SERVICES }}
run: |
# Build
echo "org.gradle.jvmargs=-Xmx2048M -Dkotlin.daemon.jvm.options=-Xmx2048M" >> gradle.properties
echo "android.useAndroidX=true" >> gradle.properties
echo "android.enableJetifier=true" >> gradle.properties
echo "$BANJEN_SIGN_PWD" | base64 -d >> gradle.properties
echo "$BANJEN_SIGN_ALIAS" | base64 -d >> gradle.properties
echo "$BANJEN_SIGN_PATH" | base64 -d >> gradle.properties
echo "$BANJEN_ADS_UNIT_ID_BANNER" | base64 -d >> gradle.properties
echo "$BANJEN_ADMOB_APP_ID" | base64 -d >> gradle.properties
echo "$GOOGLE_SERVICES" | base64 -d > app/google-services.json
# Deploy
echo "$KEY" | base64 -d > app/key.keystore
echo "$SERVICE_ACCOUNT_JSON" | base64 -d > app/service-account.json
- name: Build with Gradle
run: ./gradlew bundleRelease
- name: Artifact Upload
uses: actions/upload-artifact@v2
with:
name: app-release
path: app/build/outputs/bundle/release/app-release.aab
- name: Upload Android Release to Play Store
uses: r0adkll/upload-google-play@v1
with:
serviceAccountJsonPlainText: ${{ SERVICE_ACCOUNT_JSON }}

Check failure on line 60 in .github/workflows/deploy.yaml

View workflow run for this annotation

GitHub Actions / Deploy Play Store

Invalid workflow file

The workflow is not valid. .github/workflows/deploy.yaml (Line: 60, Col: 40): Unrecognized named-value: 'SERVICE_ACCOUNT_JSON'. Located at position 1 within expression: SERVICE_ACCOUNT_JSON
serviceAccountJson: app/service-account.json
packageName: com.banjen.app
releaseFiles: app/build/outputs/bundle/release/app-release.aab
track: production
status: inProgress
whatsNewDirectory: distribution/whatsnew
mappingFile: app/build/outputs/mapping/release/mapping.txt
debugSymbols: app/intermediates/merged_native_libs/release/out/lib