Deploying to Play Store for .AAB, not .APK: Error: Path does not exist...
kenaitian opened this issue · 0 comments
Steps to Reproduce:
1. Pushed code to GitHub for .AAB, and commented out .APK
2. Error
build_android
Path does not exist /home/runner/work/lessimp/lessimp/build/app/outputs/apk/release/app-release.aab
build_android
Exit code 1 returned from process: file name '/home/runner/runners/2.291.1/bin/Runner.PluginHost', arguments 'action "GitHub.Runner.Plugins.Artifact.PublishArtifact, Runner.Plugins"'.
3. GitHub Action YML file:
name: Playstore Deployment
on:
push:
branches:
- "main"
jobs:
CI
build_android:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup Java
uses: actions/setup-java@v1
with:
java-version: 12.x
- name: Decrypt Android keys
run: sh ./.github/scripts/decrypt_android_secrets.sh
env:
ANDROID_KEYS_SECRET_PASSPHRASE: ${{ secrets.ANDROID_KEYS_SECRET_PASSPHRASE }}
- name: Setup Flutter
uses: subosito/flutter-action@v1
with:
flutter-version: 3.0.1
- name: Install Flutter dependencies
run: flutter pub get
# Add build runner commands here if you have any
- name: Build the APK
run: flutter build apk --release
- name: Upload artifact to Github
uses: actions/upload-artifact@v1
with:
name: release-apk
name: release-aab
path: build/app/outputs/apk/release/app-release.apk
path: build/app/outputs/apk/release/app-release.aab
#CD
deploy_android:
name: Deploying to playstore
runs-on: ubuntu-latest
needs: [build_android]
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup Java
uses: actions/setup-java@v1
with:
java-version: 12.x
- name: Decrypt Android keys
run: sh ./.github/scripts/decrypt_android_secrets.sh
env:
ANDROID_KEYS_ZIP_PASSPHRASE: ${{ secrets.ANDROID_KEYS_ZIP_PASSPHRASE }}
- name: Setup Flutter
uses: subosito/flutter-action@v1
with:
flutter-version: 2.0.6
- run: flutter pub get
- run: flutter build apk --release
- run: flutter build appbundle --release
- name: Upload artifact to Github
uses: actions/upload-artifact@v1
with:
name: release-apk
name: release-aab
path: build/app/outputs/apk/release/app-release.apk
path: build/app/outputs/apk/release/app-release.aab
- name: Run Fastlane
uses: maierj/fastlane-action@v1.4.0
with:
lane: closed_beta
subdirectory: android