Skip to content

Commit b1b4704

Browse files
committed
ci: fix keystore and add manual trigger
1 parent bf09300 commit b1b4704

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

.github/workflows/ci-android.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,15 @@ on:
66
- '*'
77
paths:
88
- 'android/**'
9+
pull_request:
10+
paths:
11+
- 'android/**'
12+
workflow_dispatch:
13+
inputs:
14+
branch:
15+
description: Branch to build
16+
required: true
17+
default: main
918
workflow_call:
1019

1120
jobs:
@@ -17,6 +26,7 @@ jobs:
1726
- uses: actions/checkout@v4
1827
with:
1928
submodules: true
29+
ref: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.branch || github.ref }}
2030
- uses: actions/setup-java@v4
2131
with:
2232
distribution: zulu
@@ -33,7 +43,7 @@ jobs:
3343
- name: Create local.properties
3444
run: |
3545
cat <<EOF > android/local.properties
36-
RELEASE_STORE_FILE=release.keystore
46+
RELEASE_STORE_FILE=../release.keystore
3747
RELEASE_STORE_PASSWORD=${{ secrets.RELEASE_STORE_PASSWORD }}
3848
RELEASE_KEY_ALIAS=${{ secrets.RELEASE_KEY_ALIAS }}
3949
RELEASE_KEY_PASSWORD=${{ secrets.RELEASE_KEY_PASSWORD }}
@@ -49,6 +59,7 @@ jobs:
4959
path: release/*
5060

5161
release:
62+
if: github.event_name == 'push'
5263
runs-on: ubuntu-latest
5364
needs: build
5465
permissions:

0 commit comments

Comments
 (0)