feat: Update github action and fastlane configuration

This commit is contained in:
Anton Stubenbord
2023-06-10 16:46:30 +02:00
parent 1b957ab9b7
commit d517159fdb
2 changed files with 19 additions and 71 deletions

View File

@@ -5,21 +5,18 @@ on:
# Enable manual run
workflow_dispatch:
inputs:
lane:
description: "Fastlane lane"
required: true
default: "alpha"
track:
description: "Track"
type: choice
options:
default: beta
options:
- internal
- promote_to_alpha
- alpha
- promote_to_beta
- beta
- promote_to_production
- production
is_draft:
description: "Only create a draft and don't automatically publish?"
description: "Mark as draft"
required: true
default: true
type: boolean
@@ -64,8 +61,7 @@ jobs:
working-directory: android
# Build and deploy with Fastlane
# Naturally, promote_to_{alpha|beta|production} only deploys.
- run: bundle exec fastlane ${{ github.event.inputs.lane }} is_draft:${{ github.event.inputs.is_draft }}
- run: bundle exec fastlane publish_in_play_store is_draft:${{ github.event.inputs.is_draft }} track:${{ github.event.inputs.track }}
env:
PLAY_STORE_CREDENTIALS: ${{ secrets.PLAY_STORE_CREDENTIALS }}
working-directory: android