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

Unable to find any release file matching #221

Open
1 task done
tuyen-vuduc opened this issue May 31, 2024 · 16 comments
Open
1 task done

Unable to find any release file matching #221

tuyen-vuduc opened this issue May 31, 2024 · 16 comments
Labels
invalid This doesn't seem right question Further information is requested

Comments

@tuyen-vuduc
Copy link

tuyen-vuduc commented May 31, 2024

Describe the bug
I am trying to set up a GitHub Action workflow to publish my sample Android app to Play Store.
However, I faced error of Unable to find any release file matching

image

Workflow Step Configuration

The workflow can be found here

https://github.com/tuyen-vuduc/chick-and-paddy-dotnet-maui/blob/main/.github/workflows/android.yml

Step Debugging

@tuyen-vuduc tuyen-vuduc added the bug Something isn't working label May 31, 2024
@boswelja
Copy link
Collaborator

You need to point the action to your signed release apk/aab

@tuyen-vuduc
Copy link
Author

@boswelja Have you checked out my YAML?

My steps are
1/ Build and upload AAB to artifact folder
2/ Download the artifact to current workspace
a. I also use ls to ensure the file downloaded well
3/ Upload the downloaded AAB via the action

@boswelja
Copy link
Collaborator

@boswelja Have you checked out my YAML?

My steps are 1/ Build and upload AAB to artifact folder 2/ Download the artifact to current workspace a. I also use ls to ensure the file downloaded well 3/ Upload the downloaded AAB via the action

Did you try wrapping your releaseFiles in quotes? According to your run output, it's not checking in any folder.

@boswelja boswelja added invalid This doesn't seem right question Further information is requested and removed bug Something isn't working labels Jun 2, 2024
@brux88
Copy link

brux88 commented Jun 11, 2024

i have the same problem

@Ramo-Y
Copy link

Ramo-Y commented Jul 1, 2024

I had the same issue and solved it by surrounding the path with quotes, it worked on the Ubuntu image, but not on Windows.

@CRoederTND
Copy link

Anyone found a solution? I can verify the file is there, but I get the same message.

@Ramo-Y
Copy link

Ramo-Y commented Jul 19, 2024

I also had problems uploading because the setup was incomplete. The privacy policy and data safety information were missing, but after adding them it worked. Go to the Developer Console, Dashboard, and check if you have set everything under “LET US KNOW ABOUT THE CONTENT OF YOUR APP”.

@CRoederTND
Copy link

CRoederTND commented Jul 22, 2024

I solved it by replacing "\" with "/" in the path to the *.aab file

@fadlurahmanfdev
Copy link

have the same issue here

@CRoederTND
Copy link

have the same issue here

Try replacing \ with /

@fadlurahmanfdev
Copy link

fadlurahmanfdev commented Jul 25, 2024

have the same issue here

Try replacing \ with /

still give me an error @CRoederTND

Uploading image.png…

image

@CRoederTND
Copy link

@fadlurahmanfdev are you sure the file is there?

@fadlurahmanfdev
Copy link

@fadlurahmanfdev are you sure the file is there?

sure @CRoederTND , I already check the directory using ls command & the file is there

image image image

@Surkhojb
Copy link

Hi there,

I also have the same issue here.

I am getting the apk from the path and saving in a variable. The variable is getting the .aab file without problem. but once we pass this variable to the action it fails.

Run r0adkll/upload-google-play@v1
  with:
    serviceAccountJson: ***
    packageName: our.current.package
    releaseFile: ./artifacts/App-Release-108000701.aab
    track: qa
    inAppUpdatePriority: 0
    status: completed
    changesNotSentForReview: false
  env:
    DOWNLOAD_APK_PATH: ./artifacts/App-Release-150800001.aab

Here is the job I am using to deploy the .aab to stores

deploy:
    needs: build
    runs-on: ubuntu-latest

    steps:
      - name: Download Debug Build from Artifacts
        uses: actions/download-artifact@v3
        with:
          name: bundle-artifact
          path: ./artifacts/

      - name: Get Path to file
        run: |
          echo "DOWNLOAD_APK_PATH=$(find ./artifacts/*.aab)" >> $GITHUB_ENV

      - name: Upload AAB to Store
        uses: r0adkll/upload-google-play@v1
        with:
          serviceAccountJson: ${{ secrets.GOOGLE_SERVICE_ACCOUNT }}
          packageName: our.current.package
          releaseFile: ${{env.DOWNLOAD_APK_PATH}}
          track: qa

      - name: Slack Notification
        uses: 8398a7/action-slack@v3
        with:
          status: ${{ job.status }}
          fields: repo,message,commit,author,action,eventName,ref,workflow,job,took,pullRequest # selectable (default: repo,message)
        env:
          SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} # required
        if: always() # Pick up events even if the job fails or is canceled.

Any solution / workaround?

Previously I thought it was because I was running on Windows runner, but after changing to Ubuntu runner still having same error

@edwinnyawoli
Copy link

edwinnyawoli commented Sep 24, 2024

From the docs of actions/upload-artifact@v4, your signed apk/app bundle is uploaded as a zip file. When you use the actions/download-artifact@v4, the artifact is downloaded into a folder with the name you specified on the upload action (unless you specify otherwise).

So you can use something like

build_android:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
        with:
          fetch-depth: 0

      - uses: actions/setup-java@v3
        with:
          distribution: 'zulu'
          java-version: "17"
          cache: 'gradle'

      - uses: subosito/flutter-action@v2
        with:
          flutter-version: "3.16.9"
          channel: 'stable'
          cache: true

      - run: flutter pub get
      - run: flutter pub run build_runner build --delete-conflicting-outputs
      - run: flutter build appbundle
    
      - name: Upload App bundle to Releases
        uses: actions/upload-artifact@v4
        with:
          name: app-release
          path: build/app/outputs/bundle/release/app-release.aab

  deploy_android:
    name: Deploy Android Build

    needs: build_android
    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v1

    - name: Get Android Build from artifacts
      uses: actions/download-artifact@v4

    - name: Release Build to internal track
      uses: r0adkll/upload-google-play@v1
      with:
        serviceAccountJsonPlainText: ${{ secrets.PLAYSTORE_ACCOUNT_KEY }}
        packageName: com.xyz.app
        releaseFiles: app-release/app-release.aab
        track: internal
        status: completed

Some steps are not included for brevity

@CSkoubo
Copy link

CSkoubo commented Jan 6, 2025

On my gh action it was because of \ instead of /.

Do also note that the upload action is using fast-glob to find the file. This is case sensitive.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right question Further information is requested
Projects
None yet
Development

No branches or pull requests

10 participants