I’m learning to setting up CI/CD with github actions for my android app. But I am getting a warning: No files were found with the provided path: app/build/outputs/apk/debug/app-debug.apk. No artifacts will be uploaded.
Here is my code:
name: AndroidBuild
on:
pull_request:
branches: [ master ]
push:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
– name: Checkout
uses: actions/[email protected]
- name: Setup Java JDK
uses: actions/[email protected]
with:
java-version: '17'
distribution: 'adopt'
- name: Build with Gradle
run: chmod +x ./gradlew
- name: Upload a Build Artifact
uses: actions/[email protected]
with:
name: Mealz.apk
path: app/build/outputs/apk/debug/app-debug.apk
Here is my failed apk generation github action screenshot:
I am following this tutorial https://www.youtube.com/watch?v=uBXzaaOHVzY&t=1292s&ab_channel=NativeMobileBits