Skip to content

Commit

Permalink
Update build_android_apk.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Did-Dog committed Jan 21, 2024
1 parent 1d0bf67 commit 6fe3418
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/build_android_apk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ on:
description: "build.gradle task name: assemble[Flavor]Debug"
required: false
default: "assembleDebug"
appDirectory:
description: "Default directory where build.gradle located [/your directory]"
required: false
default: ""

jobs:
build:
Expand All @@ -42,7 +46,7 @@ jobs:
run: git clone --depth=1 ${{ github.event.inputs.repository }} ${{ env.main_project_module }}

- name: Build APK
working-directory: ./${{ env.main_project_module }}
working-directory: ./${{ env.main_project_module }}${{ github.event.inputs.appDirectory }}
run: |
if [ ! -f "gradlew" ]; then gradle wrapper; fi
chmod +x gradlew
Expand All @@ -51,6 +55,6 @@ jobs:
- name: Upload the APK artifact with 1 day retention
uses: actions/upload-artifact@v3
with:
path: ${{ env.main_project_module }}/app/build/outputs/apk/debug/
path: ${{ env.main_project_module }}${{ github.event.inputs.appDirectory }}/app/build/outputs/apk/debug/
name: apk-debug [${{ env.date_today }}]
retention-days: 1

0 comments on commit 6fe3418

Please sign in to comment.