Error: Unable to find any release file @ release.apk
See original GitHub issueDescribe the bug We are trying to automate the uploading to google play store, however after uploading-artifact, we can find the generated ‘release.apk’ in Github under actions/runs/1559765535, however in the upload-google-play it doesn’t seem to recognise the ‘releasesFiles’ location, doesn’t matter what we try, what are we doing wrong here?
Workflow Step Configuration
name: Deploy to Play Store
Controls when the workflow will run
on:
Triggers the workflow on push or pull request events but only for the main branch
push: branches: - main
A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
This workflow contains a single job called “build”
build: # The type of runner that the job will run on runs-on: ubuntu-latest # Steps represent a sequence of tasks that will be executed as part of the job steps: - name: Checkout code # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it uses: actions/checkout@v2
# Runs a single command using the runners shell
- name: Generate Release APK
run: ./gradlew assembleRelease
- name: Sign APK
uses: r0adkll/sign-android-release@v1
# ID used to access action output
id: sign_app
with:
releaseDirectory: app/build/outputs/apk/release
signingKeyBase64: ${{ secrets.SIGNING_KEY }}
alias: ${{ secrets.ALIAS }}
keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }}
keyPassword: ${{ secrets.KEY_PASSWORD }}
- uses: actions/upload-artifact@master
with:
name: release.apk
path: ${{steps.sign_app.outputs.signedReleaseFile}}
- uses: actions/upload-artifact@master
with:
name: mapping.txt
path: app/build/outputs/mapping/release/mapping.txt
deploy-play-store: needs: [build] runs-on: ubuntu-latest steps:
# 1
- uses: actions/download-artifact@master
with:
name: release.apk
# - uses: actions/download-artifact@master
# with:
# name: mapping.txt
# 2
- name: Publish to Play Store internal test track
uses: r0adkll/upload-google-play@v1
with:
# 3
serviceAccountJsonPlainText: ${{ secrets.PLAY_SERVICE_ACCOUNT_JSON }}
packageName: com.timeling.android
releaseFiles: app/build/outputs/apk/release
track: internal
userFraction: 0.5
mappingFile: mapping.txt
Step Debugging
– PUBLISH TO PLAY STORE INTERNAL TEST TRACK Run r0adkll/upload-google-play@v1 Error: Unable to find any release file @ app/build/outputs/apk/release
Note- that’s where it gets stuck
Thanks!
Issue Analytics
- State:
- Created 2 years ago
- Comments:9
Top GitHub Comments
It doesn’t look like anyone else made this mistake, but it may be worth making sure you are both generating an aab release file (running
./gradlew bundleRelease
and checking inapp/build/outputs/bundle/release
.I was looking in
app/build/outputs/bundle/release
but had generated an apk with./gradlew assembleRelease
.Try this: https://github.com/r0adkll/upload-google-play/issues/100#issuecomment-1198179813