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 299abbb
Show file tree
Hide file tree
Showing 5 changed files with 77 additions and 3 deletions.
7 changes: 4 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: Publish Helper
on:
workflow_dispatch:
inputs:
Expand Down
18 changes: 18 additions & 0 deletions .github/workflows/publishToAndroidAlpha.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Uploads an Android binary to the Google Play Store.
name: Publish Android to Alpha (Internal Test)
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

jobs:
build:
uses: ./.github/workflows/publish.yml
secrets: inherit
with:
runId: ${{ inputs.runId }}
platform: android
releaseChannel: alpha
18 changes: 18 additions & 0 deletions .github/workflows/publishToAndroidBeta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Uploads an Android binary to the Google Play Store.
name: 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

jobs:
build:
uses: ./.github/workflows/publish.yml
secrets: inherit
with:
runId: ${{ inputs.runId }}
platform: android
releaseChannel: beta
18 changes: 18 additions & 0 deletions .github/workflows/publishToAndroidRelease.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Uploads an Android binary to the Google Play Store.
name: 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

jobs:
build:
uses: ./.github/workflows/publish.yml
secrets: inherit
with:
runId: ${{ inputs.runId }}
platform: android
releaseChannel: release
19 changes: 19 additions & 0 deletions .github/workflows/publishToIOS.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# 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

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

0 comments on commit 299abbb

Please sign in to comment.