ci: fix keystore and add manual trigger

This commit is contained in:
Kavish Devar
2026-04-26 00:29:02 +05:30
parent bf09300dfe
commit b1b47048a3

View File

@@ -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 <<EOF > 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: