Skip to content

Commit

Permalink
Publish workflow wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
jsubloom committed Sep 15, 2023
1 parent 85a95ef commit 39b0809
Show file tree
Hide file tree
Showing 5 changed files with 85 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
#
# A draft version to Publish a build to app store.
# Publishes a build to app store.
# Normally, you can use the publishToIOS, publishToAndroid[Alpha|Beta|Release] workflows instead,
# which are more convenient wrappers around this workflow
#
# Read: https://docs.expo.dev/submit/eas-json/
# To read about to submit to the app stores:
# Android: https://docs.expo.dev/submit/android/
# iOS: https://docs.expo.dev/submit/ios/

name: Publish (Draft)
name: Z_Publish Helper
on:
workflow_dispatch:
inputs:
Expand Down Expand Up @@ -40,6 +41,10 @@ on:
# the options are "Android - Alpha", "Android - Beta", "Android - Release", and "iOS - Beta"
workflow_call:
inputs:
runId:
type: string
required: true

platform:
type: string
required: true
Expand Down
19 changes: 19 additions & 0 deletions .github/workflows/publishToAndroidAlpha.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Uploads an Android binary to the Google Play Store.
name: Z_Publish Android to Alpha (Internal Test) [Draft]
on:
workflow_dispatch:
inputs:
runId:
type: string
description: "The workflow whose build artifact to submit to the app store, as in https://github.com/BloomBooks/BloomReader-Lite/actions/runs/[runId]"
required: true
run-name: Publish Android to Alpha (${{ inputs.runId }})

jobs:
publish:
uses: ./.github/workflows/publish.yml
secrets: inherit
with:
runId: ${{ inputs.runId }}
platform: android
releaseChannel: alpha
19 changes: 19 additions & 0 deletions .github/workflows/publishToAndroidBeta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Uploads an Android binary to the Google Play Store.
name: Z_Publish Android to Beta (Open Test) [Draft]
on:
workflow_dispatch:
inputs:
runId:
type: string
description: "The workflow whose build artifact to submit to the app store, as in https://github.com/BloomBooks/BloomReader-Lite/actions/runs/[runId]"
required: true
run-name: Publish Android to Beta (${{ inputs.runId }})

jobs:
publish:
uses: ./.github/workflows/publish.yml
secrets: inherit
with:
runId: ${{ inputs.runId }}
platform: android
releaseChannel: beta
19 changes: 19 additions & 0 deletions .github/workflows/publishToAndroidRelease.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Uploads an Android binary to the Google Play Store.
name: Z_Publish Android to Release (Production) [Draft]
on:
workflow_dispatch:
inputs:
runId:
type: string
description: "The workflow whose build artifact to submit to the app store, as in https://github.com/BloomBooks/BloomReader-Lite/actions/runs/[runId]"
required: true
run-name: Publish Android to Release (${{ inputs.runId }})

jobs:
publish:
uses: ./.github/workflows/publish.yml
secrets: inherit
with:
runId: ${{ inputs.runId }}
platform: android
releaseChannel: release
20 changes: 20 additions & 0 deletions .github/workflows/publishToIOS.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Uploads the iOS binaries to the Apple's AppStoreConnect. You need to do some manual work
# on the AppStoreConnect website to have TestFlight start for it or to promote the build to a new release version
name: Publish iOS to Beta
on:
workflow_dispatch:
inputs:
runId:
type: string
description: "The workflow whose build artifacts to submit to the app store, as in https://github.com/BloomBooks/BloomReader-Lite/actions/runs/[runId]"
required: true
run-name: Publish iOS to Beta (${{ inputs.runId }})

jobs:
publish:
uses: ./.github/workflows/publish.yml
secrets: inherit
with:
runId: ${{ inputs.runId }}
platform: ios
releaseChannel: beta

0 comments on commit 39b0809

Please sign in to comment.