Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploying to Play Store for .AAB, not .APK: Error: Path does not exist... #61

Open
kenaitian opened this issue Jun 2, 2022 · 0 comments

Comments

@kenaitian
Copy link

GitHub Action - Upload artifact to Github

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/[email protected]
    with:
      lane: closed_beta
      subdirectory: android
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant