mirror of
https://github.com/kavishdevar/librepods.git
synced 2026-05-15 21:22:51 +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:
|
paths:
|
||||||
- 'android/**'
|
- 'android/**'
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- 'android/**'
|
||||||
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
branch:
|
||||||
|
description: Branch to build
|
||||||
|
required: true
|
||||||
|
default: main
|
||||||
workflow_call:
|
workflow_call:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
@@ -17,6 +26,7 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
|
ref: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.branch || github.ref }}
|
||||||
- uses: actions/setup-java@v4
|
- uses: actions/setup-java@v4
|
||||||
with:
|
with:
|
||||||
distribution: zulu
|
distribution: zulu
|
||||||
@@ -33,7 +43,7 @@ jobs:
|
|||||||
- name: Create local.properties
|
- name: Create local.properties
|
||||||
run: |
|
run: |
|
||||||
cat <<EOF > android/local.properties
|
cat <<EOF > android/local.properties
|
||||||
RELEASE_STORE_FILE=release.keystore
|
RELEASE_STORE_FILE=../release.keystore
|
||||||
RELEASE_STORE_PASSWORD=${{ secrets.RELEASE_STORE_PASSWORD }}
|
RELEASE_STORE_PASSWORD=${{ secrets.RELEASE_STORE_PASSWORD }}
|
||||||
RELEASE_KEY_ALIAS=${{ secrets.RELEASE_KEY_ALIAS }}
|
RELEASE_KEY_ALIAS=${{ secrets.RELEASE_KEY_ALIAS }}
|
||||||
RELEASE_KEY_PASSWORD=${{ secrets.RELEASE_KEY_PASSWORD }}
|
RELEASE_KEY_PASSWORD=${{ secrets.RELEASE_KEY_PASSWORD }}
|
||||||
@@ -49,6 +59,7 @@ jobs:
|
|||||||
path: release/*
|
path: release/*
|
||||||
|
|
||||||
release:
|
release:
|
||||||
|
if: github.event_name == 'push'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: build
|
needs: build
|
||||||
permissions:
|
permissions:
|
||||||
|
|||||||
Reference in New Issue
Block a user