From b1b47048a34b729ae2b4d30426a809887e8ef76e Mon Sep 17 00:00:00 2001 From: Kavish Devar Date: Sun, 26 Apr 2026 00:29:02 +0530 Subject: [PATCH] ci: fix keystore and add manual trigger --- .github/workflows/ci-android.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci-android.yml b/.github/workflows/ci-android.yml index 68376b2..a186f77 100644 --- a/.github/workflows/ci-android.yml +++ b/.github/workflows/ci-android.yml @@ -6,6 +6,15 @@ on: - '*' paths: - 'android/**' + pull_request: + paths: + - 'android/**' + workflow_dispatch: + inputs: + branch: + description: Branch to build + required: true + default: main workflow_call: jobs: @@ -17,6 +26,7 @@ jobs: - uses: actions/checkout@v4 with: submodules: true + ref: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.branch || github.ref }} - uses: actions/setup-java@v4 with: distribution: zulu @@ -33,7 +43,7 @@ jobs: - name: Create local.properties run: | cat < android/local.properties - RELEASE_STORE_FILE=release.keystore + RELEASE_STORE_FILE=../release.keystore RELEASE_STORE_PASSWORD=${{ secrets.RELEASE_STORE_PASSWORD }} RELEASE_KEY_ALIAS=${{ secrets.RELEASE_KEY_ALIAS }} RELEASE_KEY_PASSWORD=${{ secrets.RELEASE_KEY_PASSWORD }} @@ -49,6 +59,7 @@ jobs: path: release/* release: + if: github.event_name == 'push' runs-on: ubuntu-latest needs: build permissions: