From 299abbb25488648800ab76eb4b754a714587eea4 Mon Sep 17 00:00:00 2001 From: jsu <41497174+jsubloom@users.noreply.github.com> Date: Fri, 15 Sep 2023 09:06:35 -0500 Subject: [PATCH] Publish workflow wrapper --- .github/workflows/publish.yml | 7 ++++--- .github/workflows/publishToAndroidAlpha.yml | 18 ++++++++++++++++++ .github/workflows/publishToAndroidBeta.yml | 18 ++++++++++++++++++ .github/workflows/publishToAndroidRelease.yml | 18 ++++++++++++++++++ .github/workflows/publishToIOS.yml | 19 +++++++++++++++++++ 5 files changed, 77 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/publishToAndroidAlpha.yml create mode 100644 .github/workflows/publishToAndroidBeta.yml create mode 100644 .github/workflows/publishToAndroidRelease.yml create mode 100644 .github/workflows/publishToIOS.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index f583158..cf6b67f 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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: diff --git a/.github/workflows/publishToAndroidAlpha.yml b/.github/workflows/publishToAndroidAlpha.yml new file mode 100644 index 0000000..a215dbd --- /dev/null +++ b/.github/workflows/publishToAndroidAlpha.yml @@ -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 diff --git a/.github/workflows/publishToAndroidBeta.yml b/.github/workflows/publishToAndroidBeta.yml new file mode 100644 index 0000000..ea4faaa --- /dev/null +++ b/.github/workflows/publishToAndroidBeta.yml @@ -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 diff --git a/.github/workflows/publishToAndroidRelease.yml b/.github/workflows/publishToAndroidRelease.yml new file mode 100644 index 0000000..3b17ecd --- /dev/null +++ b/.github/workflows/publishToAndroidRelease.yml @@ -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 diff --git a/.github/workflows/publishToIOS.yml b/.github/workflows/publishToIOS.yml new file mode 100644 index 0000000..dc2bae1 --- /dev/null +++ b/.github/workflows/publishToIOS.yml @@ -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