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

When Trying to upload an APK, *.apk doesn't work, It throws file not found error #51

Open
kuwrom opened this issue Jun 8, 2022 · 3 comments

Comments

@kuwrom
Copy link

kuwrom commented Jun 8, 2022

When the apk name contains version name, we can't just hard code the apk path/ file. How would it be possible to pass the file name

@Ievhenii365
Copy link

faced same issue today

@MarcelReiter
Copy link

My workaround was the following:

- name: Get path of created apk
  id: retrieve-path
  run: echo "path=$(find app/build/outputs/apk/ -type f -name '*.apk')" >> $GITHUB_OUTPUT

- name: Upload to App Center
  uses: wzieba/AppCenter-Github-Action@v1.3.3
  with:
    appName: my-app
    file: ${{steps.retrieve-path.outputs.path}}

While it does work for me, i'm an absolute noob, so please don't just copy/paste, but check for yourself

@daskabe
Copy link

daskabe commented Dec 7, 2023

@MarcelReiter thats a great answer...i just did a simple find first and copied the output and put it in file path for the next run. But for OP this is the path of the .apk ./android/app/build/outputs/apk/debug/<appName>.apk

      - name: Locate APK file
        run: |
          find . -name '*.apk'

    - name: upload artefact to App Center
        uses: wzieba/AppCenter-Github-Action@v1
        with:
          appName: templateApp
          token: ${{secrets.APP_CENTER_TOKEN}}
          group: Testers
          file: ./android/app/build/outputs/apk/debug/templateApp-debug.apk     <<
          notifyTesters: true
          debug: true

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

4 participants