mirror of
https://github.com/kavishdevar/librepods.git
synced 2026-04-29 09:33:04 +00:00
ci: fix keystore and add manual trigger
This commit is contained in:
13
.github/workflows/ci-android.yml
vendored
13
.github/workflows/ci-android.yml
vendored
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user