mirror of
https://github.com/pezkuwichain/pezkuwi-wallet-android.git
synced 2026-04-23 00:17:56 +00:00
52 lines
1.9 KiB
YAML
52 lines
1.9 KiB
YAML
name: Manual Firebase distribution
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
build_variant:
|
|
description: 'Build variant'
|
|
required: true
|
|
type: choice
|
|
options:
|
|
- develop
|
|
- releaseMarket
|
|
default: develop
|
|
firebase_group:
|
|
description: 'Firebase group'
|
|
required: true
|
|
default: dev-team
|
|
branch:
|
|
description: 'From which branch the application will be built'
|
|
required: true
|
|
default: main
|
|
|
|
jobs:
|
|
build:
|
|
uses: pezkuwichain/pezkuwi-wallet-android/.github/workflows/android_build.yml@main
|
|
with:
|
|
branch: ${{ github.event.inputs.branch }}
|
|
gradlew-command: assemble${{ github.event.inputs.build_variant == 'releaseMarket' && 'ReleaseMarket' || 'Develop' }}
|
|
keystore-file-name: ${{ github.event.inputs.build_variant == 'releaseMarket' && 'market_key.jks' || 'false' }}
|
|
secrets: inherit
|
|
|
|
upload:
|
|
runs-on: ubuntu-latest
|
|
needs: build
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Download built artifact
|
|
uses: actions/download-artifact@v4
|
|
with:
|
|
name: apk
|
|
path: app
|
|
|
|
- name: 🗳 Upload to Firebase
|
|
uses: ./.github/workflows/upload-to-firebase
|
|
with:
|
|
appId: ${{ github.event.inputs.build_variant == 'releaseMarket' && secrets.ANDROID_RELEASE_FIREBASE_APP_ID || secrets.ANDROID_DEVELOP_FIREBASE_APP_ID }}
|
|
firebase-token: ${{ github.event.inputs.build_variant == 'releaseMarket' && secrets.RELEASE_FIREBASE_CREDENTIAL || secrets.CREDENTIAL_FILE_CONTENT }}
|
|
releaseNotes: "v1.0.0 - ${{ github.event.inputs.build_variant }} build from ${{ github.event.inputs.branch }}"
|
|
test-groups: ${{ github.event.inputs.firebase_group }}
|
|
upload-file: ${{ github.event.inputs.build_variant == 'releaseMarket' && 'app/releaseMarket/app-releaseMarket.apk' || 'app/develop/app-develop.apk' }}
|