Skip to content

Commit

Permalink
ci(workflow_dispatch): use manual workflow to trigger fastlane track …
Browse files Browse the repository at this point in the history
…promotion
  • Loading branch information
vareversat committed Feb 3, 2024
1 parent 9f19a2a commit e49708e
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/fastlane-promote.action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Fastlane - Track promotion

on:
workflow_dispatch:
inputs:
origin_track:
description: 'Origin track of the promotion'
required: true
default: 'beta'
type: choice
options:
- beta
destination_track:
description: 'Destination track of the promotion'
required: true
default: 'production'
type: choice
options:
- production

jobs:
play_store:
name: 'Play Store'
runs-on: ubuntu-latest
steps:
- name: 'Decrypt secret configuration'
run: ./.github/scripts/decrypt_secret.sh
env:
PASSPHRASE: ${{ secrets.PASSPHRASE }}
- name: 'Fastlane promote ${{ inputs.origin_track }} to ${{ inputs.destination_track }}'
uses: maierj/[email protected]
with:
lane: track_promotion
options: '{ "origin_track": "${{ inputs.origin_track }}", "destination_track": "${{ inputs.destination_track }}" }'
subdirectory: 'android'
env:
SUPPLY_UPLOAD_MAX_RETRIES: 5
8 changes: 8 additions & 0 deletions android/fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,12 @@ platform :android do
aab: "#{root_path}/app-release.aab"
)
end

desc "Upload to Play Store : Promote track"
lane :track_promotion do
upload_to_play_store(
track: options[:origin_track],
track_promote_to: options[:destination_track]
)
end
end

0 comments on commit e49708e

Please sign in to comment.