new(flavor): Added flavor and environment definitions (#579)

This commit is contained in:
Jagandeep Brar
2022-01-09 02:27:21 -05:00
committed by GitHub
parent 1d0f2ab387
commit fc5516ea9c
10 changed files with 147 additions and 50 deletions

View File

@@ -1,9 +1,17 @@
name: '[Build] Alpha - Android'
name: '[Build] Android'
on:
workflow_dispatch:
push:
tags: ['alpha']
inputs:
flavor:
type: choice
required: true
description: 'Build Flavor?'
options:
- 'develop'
- 'alpha'
- 'beta'
- 'production'
jobs:
build:
@@ -15,8 +23,13 @@ jobs:
with:
ref: 'master'
fetch-depth: 0
- name: Setup Private Keys
- name: Set Flavor
working-directory: ${{ github.workspace }}
run: |
echo "FLAVOR=${{ github.event.inputs.flavor }}" > .flavor
- name: Install Secret Keys
run: |
echo ${{ secrets.GOOGLE_SERVICES_JSON }} | base64 --decode > android/app/google-services.json
echo ${{ secrets.KEY_JKS }} | base64 --decode > android/key.jks

View File

@@ -1,9 +1,17 @@
name: '[Build] Alpha - iOS'
name: '[Build] iOS'
on:
workflow_dispatch:
push:
tags: ['alpha']
inputs:
flavor:
type: choice
required: true
description: 'Build Flavor?'
options:
- 'develop'
- 'alpha'
- 'beta'
- 'production'
jobs:
build:
@@ -15,23 +23,28 @@ jobs:
with:
ref: 'master'
fetch-depth: 0
- name: Setup Keys
- name: Set Flavor
working-directory: ${{ github.workspace }}
run: |
echo ${{ secrets.GOOGLE_SERVICE_INFO_PLIST }} | base64 --decode > ios/GoogleService-Info.plist
echo ${{ secrets.APPLE_STORE_CONNECT_KEY }} | base64 --decode > ios/${{ secrets.APPLE_STORE_CONNECT_KEY_FILEPATH }}
- name: Setup SSH Keys
uses: webfactory/ssh-agent@v0.5.4
with:
ssh-private-key: ${{ secrets.MATCH_SSH_PRIVATE_KEY }}
echo "FLAVOR=${{ github.event.inputs.flavor }}" > .flavor
- name: Select Xcode Version
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable
- name: Install Secret Keys
working-directory: ${{ github.workspace }}
run: |
echo ${{ secrets.GOOGLE_SERVICE_INFO_PLIST }} | base64 --decode > ios/GoogleService-Info.plist
echo ${{ secrets.APPLE_STORE_CONNECT_KEY }} | base64 --decode > ios/${{ secrets.APPLE_STORE_CONNECT_KEY_FILEPATH }}
- name: Setup SSH Agent
uses: webfactory/ssh-agent@v0.5.4
with:
ssh-private-key: ${{ secrets.MATCH_SSH_PRIVATE_KEY }}
- name: Install Ruby
uses: ruby/setup-ruby@v1
with:

View File

@@ -1,9 +1,17 @@
name: '[Build] Alpha - macOS'
name: '[Build] macOS'
on:
workflow_dispatch:
push:
tags: ['alpha']
inputs:
flavor:
type: choice
required: true
description: 'Build Flavor?'
options:
- 'develop'
- 'alpha'
- 'beta'
- 'production'
jobs:
build:
@@ -16,22 +24,27 @@ jobs:
ref: 'master'
fetch-depth: 0
- name: Setup Keys
- name: Set Flavor
working-directory: ${{ github.workspace }}
run: |
echo ${{ secrets.GOOGLE_SERVICE_INFO_PLIST }} | base64 --decode > macos/GoogleService-Info.plist
echo ${{ secrets.APPLE_STORE_CONNECT_KEY }} | base64 --decode > macos/${{ secrets.APPLE_STORE_CONNECT_KEY_FILEPATH }}
- name: Setup SSH Keys
uses: webfactory/ssh-agent@v0.5.4
with:
ssh-private-key: ${{ secrets.MATCH_SSH_PRIVATE_KEY }}
echo "FLAVOR=${{ github.event.inputs.flavor }}" > .flavor
- name: Select Xcode Version
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable
- name: Install Secret Keys
working-directory: ${{ github.workspace }}
run: |
echo ${{ secrets.GOOGLE_SERVICE_INFO_PLIST }} | base64 --decode > macos/GoogleService-Info.plist
echo ${{ secrets.APPLE_STORE_CONNECT_KEY }} | base64 --decode > macos/${{ secrets.APPLE_STORE_CONNECT_KEY_FILEPATH }}
- name: Setup SSH Agent
uses: webfactory/ssh-agent@v0.5.4
with:
ssh-private-key: ${{ secrets.MATCH_SSH_PRIVATE_KEY }}
- name: Install Ruby
uses: ruby/setup-ruby@v1
with: