mirror of
https://github.com/jagandeepbrar/lunasea.git
synced 2026-08-31 12:42:34 +00:00
new(ci): Option to deploy to store fronts (default: true)
This commit is contained in:
@@ -35,60 +35,70 @@ on:
|
||||
description: 'Build for macOS'
|
||||
default: "true"
|
||||
|
||||
deploy:
|
||||
type: boolean
|
||||
required: true
|
||||
description: 'Deploy to Store Fronts?'
|
||||
default: "true"
|
||||
|
||||
env:
|
||||
VERSION: ${{ (github.event.inputs || inputs).flavor }}-${{ github.sha }}
|
||||
FLAVOR: ${{ github.event.inputs.flavor || 'internal' }}
|
||||
|
||||
jobs:
|
||||
build_android:
|
||||
if: ${{ (github.event.inputs.android || 'true') == 'true' }}
|
||||
uses: CometTools/LunaSea/.github/workflows/build_android.yml@master
|
||||
with:
|
||||
flavor: ${{ github.event.inputs.flavor || 'internal' }}
|
||||
secrets:
|
||||
FLAVOR: ${{ env.FLAVOR }}
|
||||
GOOGLE_SERVICES_JSON: ${{ secrets.GOOGLE_SERVICES_JSON }}
|
||||
KEY_JKS: ${{ secrets.KEY_JKS }}
|
||||
KEY_PROPERTIES: ${{ secrets.KEY_PROPERTIES }}
|
||||
VERSION: ${{ env.VERSION }}
|
||||
|
||||
build_ios:
|
||||
if: ${{ (github.event.inputs.ios || 'true') == 'true' }}
|
||||
uses: CometTools/LunaSea/.github/workflows/build_ios.yml@master
|
||||
with:
|
||||
flavor: ${{ github.event.inputs.flavor || 'internal' }}
|
||||
secrets:
|
||||
APPLE_ID: ${{ secrets.APPLE_ID }}
|
||||
APPLE_ITC_TEAM_ID: ${{ secrets.APPLE_ITC_TEAM_ID }}
|
||||
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
|
||||
FLAVOR: ${{ env.FLAVOR }}
|
||||
GOOGLE_SERVICE_INFO_PLIST: ${{ secrets.GOOGLE_SERVICE_INFO_PLIST }}
|
||||
MATCH_KEYCHAIN_NAME: ${{ secrets.MATCH_KEYCHAIN_NAME }}
|
||||
MATCH_KEYCHAIN_PASSWORD: ${{ secrets.MATCH_KEYCHAIN_PASSWORD }}
|
||||
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}
|
||||
MATCH_SSH_PRIVATE_KEY: ${{ secrets.MATCH_SSH_PRIVATE_KEY }}
|
||||
VERSION: ${{ env.VERSION }}
|
||||
|
||||
build_macos:
|
||||
if: ${{ (github.event.inputs.macos || 'true') == 'true' }}
|
||||
uses: CometTools/LunaSea/.github/workflows/build_macos.yml@master
|
||||
with:
|
||||
flavor: ${{ github.event.inputs.flavor || 'internal' }}
|
||||
secrets:
|
||||
APPLE_ID: ${{ secrets.APPLE_ID }}
|
||||
APPLE_ITC_TEAM_ID: ${{ secrets.APPLE_ITC_TEAM_ID }}
|
||||
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
|
||||
FLAVOR: ${{ env.FLAVOR }}
|
||||
GOOGLE_SERVICE_INFO_PLIST: ${{ secrets.GOOGLE_SERVICE_INFO_PLIST }}
|
||||
MATCH_KEYCHAIN_NAME: ${{ secrets.MATCH_KEYCHAIN_NAME }}
|
||||
MATCH_KEYCHAIN_PASSWORD: ${{ secrets.MATCH_KEYCHAIN_PASSWORD }}
|
||||
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}
|
||||
MATCH_SSH_PRIVATE_KEY: ${{ secrets.MATCH_SSH_PRIVATE_KEY }}
|
||||
VERSION: ${{ env.VERSION }}
|
||||
|
||||
deploy_android:
|
||||
needs: build_android
|
||||
if: ${{ (github.event.inputs.deploy || 'true') == 'true' }}
|
||||
uses: CometTools/LunaSea/.github/workflows/deploy_android.yml@master
|
||||
with:
|
||||
flavor: ${{ github.event.inputs.flavor || 'internal' }}
|
||||
secrets:
|
||||
FLAVOR: ${{ env.FLAVOR }}
|
||||
GOOGLE_PLAY_API: ${{ secrets.GOOGLE_PLAY_API }}
|
||||
VERSION: ${{ env.VERSION }}
|
||||
|
||||
deploy_ios:
|
||||
needs: build_ios
|
||||
if: ${{ (github.event.inputs.deploy || 'true') == 'true' }}
|
||||
uses: CometTools/LunaSea/.github/workflows/deploy_ios.yml@master
|
||||
with:
|
||||
flavor: ${{ github.event.inputs.flavor || 'internal' }}
|
||||
secrets:
|
||||
APPLE_ID: ${{ secrets.APPLE_ID }}
|
||||
APPLE_ITC_TEAM_ID: ${{ secrets.APPLE_ITC_TEAM_ID }}
|
||||
@@ -97,12 +107,13 @@ jobs:
|
||||
APPLE_STORE_CONNECT_KEY_ID: ${{ secrets.APPLE_STORE_CONNECT_KEY_ID }}
|
||||
APPLE_STORE_CONNECT_ISSUER_ID: ${{ secrets.APPLE_STORE_CONNECT_ISSUER_ID }}
|
||||
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
|
||||
FLAVOR: ${{ env.FLAVOR }}
|
||||
VERSION: ${{ env.VERSION }}
|
||||
|
||||
deploy_macos:
|
||||
needs: build_macos
|
||||
if: ${{ (github.event.inputs.deploy || 'true') == 'true' }}
|
||||
uses: CometTools/LunaSea/.github/workflows/deploy_macos.yml@master
|
||||
with:
|
||||
flavor: ${{ github.event.inputs.flavor || 'internal' }}
|
||||
secrets:
|
||||
APPLE_ID: ${{ secrets.APPLE_ID }}
|
||||
APPLE_ITC_TEAM_ID: ${{ secrets.APPLE_ITC_TEAM_ID }}
|
||||
@@ -111,3 +122,5 @@ jobs:
|
||||
APPLE_STORE_CONNECT_KEY_ID: ${{ secrets.APPLE_STORE_CONNECT_KEY_ID }}
|
||||
APPLE_STORE_CONNECT_ISSUER_ID: ${{ secrets.APPLE_STORE_CONNECT_ISSUER_ID }}
|
||||
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
|
||||
FLAVOR: ${{ env.FLAVOR }}
|
||||
VERSION: ${{ env.VERSION }}
|
||||
14
.github/workflows/build_android.yml
vendored
14
.github/workflows/build_android.yml
vendored
@@ -1,18 +1,18 @@
|
||||
name: '[Android] Build'
|
||||
name: '[Build] Android'
|
||||
|
||||
on:
|
||||
workflow_call:
|
||||
inputs:
|
||||
flavor:
|
||||
required: true
|
||||
type: string
|
||||
secrets:
|
||||
FLAVOR:
|
||||
required: true
|
||||
GOOGLE_SERVICES_JSON:
|
||||
required: true
|
||||
KEY_JKS:
|
||||
required: true
|
||||
KEY_PROPERTIES:
|
||||
required: true
|
||||
VERSION:
|
||||
required: true
|
||||
|
||||
jobs:
|
||||
build:
|
||||
@@ -29,7 +29,7 @@ jobs:
|
||||
- name: Set Flavor
|
||||
working-directory: ${{ github.workspace }}
|
||||
run: |
|
||||
echo $'FLAVOR=${{ (github.event.inputs || inputs).flavor }}\nCOMMIT=${{ github.sha }}' > .flavor
|
||||
echo $'FLAVOR=${{ secrets.FLAVOR }}\nCOMMIT=${{ github.sha }}' > .flavor
|
||||
|
||||
- name: Install Secret Keys
|
||||
working-directory: ${{ github.workspace }}
|
||||
@@ -69,5 +69,5 @@ jobs:
|
||||
- name: Upload App Bundle Artifact
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: android-${{ (github.event.inputs || inputs).flavor }}-${{ github.sha }}
|
||||
name: android-${{ secrets.VERSION }}
|
||||
path: ${{ github.workspace }}/build/app/outputs/bundle/release/app-release.aab
|
||||
|
||||
14
.github/workflows/build_ios.yml
vendored
14
.github/workflows/build_ios.yml
vendored
@@ -1,11 +1,7 @@
|
||||
name: '[iOS] Build'
|
||||
name: '[Build] iOS'
|
||||
|
||||
on:
|
||||
workflow_call:
|
||||
inputs:
|
||||
flavor:
|
||||
required: true
|
||||
type: string
|
||||
secrets:
|
||||
APPLE_ID:
|
||||
required: true
|
||||
@@ -13,6 +9,8 @@ on:
|
||||
required: true
|
||||
APPLE_TEAM_ID:
|
||||
required: true
|
||||
FLAVOR:
|
||||
required: true
|
||||
GOOGLE_SERVICE_INFO_PLIST:
|
||||
required: true
|
||||
MATCH_KEYCHAIN_NAME:
|
||||
@@ -23,6 +21,8 @@ on:
|
||||
required: true
|
||||
MATCH_SSH_PRIVATE_KEY:
|
||||
required: true
|
||||
VERSION:
|
||||
required: true
|
||||
|
||||
jobs:
|
||||
build:
|
||||
@@ -39,7 +39,7 @@ jobs:
|
||||
- name: Set Flavor
|
||||
working-directory: ${{ github.workspace }}
|
||||
run: |
|
||||
echo $'FLAVOR=${{ (github.event.inputs || inputs).flavor }}\nCOMMIT=${{ github.sha }}' > .flavor
|
||||
echo $'FLAVOR=${{ secrets.FLAVOR }}\nCOMMIT=${{ github.sha }}' > .flavor
|
||||
|
||||
- name: Select Xcode Version
|
||||
uses: maxim-lobanov/setup-xcode@v1
|
||||
@@ -91,5 +91,5 @@ jobs:
|
||||
- name: Upload App Package Artifact
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: ios-${{ (github.event.inputs || inputs).flavor }}-${{ github.sha }}
|
||||
name: ios-${{ secrets.VERSION }}
|
||||
path: ${{ github.workspace }}/ios/Runner.ipa
|
||||
|
||||
14
.github/workflows/build_macos.yml
vendored
14
.github/workflows/build_macos.yml
vendored
@@ -1,11 +1,7 @@
|
||||
name: '[macOS] Build'
|
||||
name: '[Build] macOS'
|
||||
|
||||
on:
|
||||
workflow_call:
|
||||
inputs:
|
||||
flavor:
|
||||
required: true
|
||||
type: string
|
||||
secrets:
|
||||
APPLE_ID:
|
||||
required: true
|
||||
@@ -13,6 +9,8 @@ on:
|
||||
required: true
|
||||
APPLE_TEAM_ID:
|
||||
required: true
|
||||
FLAVOR:
|
||||
required: true
|
||||
GOOGLE_SERVICE_INFO_PLIST:
|
||||
required: true
|
||||
MATCH_KEYCHAIN_NAME:
|
||||
@@ -23,6 +21,8 @@ on:
|
||||
required: true
|
||||
MATCH_SSH_PRIVATE_KEY:
|
||||
required: true
|
||||
VERSION:
|
||||
required: true
|
||||
|
||||
jobs:
|
||||
build:
|
||||
@@ -39,7 +39,7 @@ jobs:
|
||||
- name: Set Flavor
|
||||
working-directory: ${{ github.workspace }}
|
||||
run: |
|
||||
echo $'FLAVOR=${{ (github.event.inputs || inputs).flavor }}\nCOMMIT=${{ github.sha }}' > .flavor
|
||||
echo $'FLAVOR=${{ secrets.FLAVOR }}\nCOMMIT=${{ github.sha }}' > .flavor
|
||||
|
||||
- name: Select Xcode Version
|
||||
uses: maxim-lobanov/setup-xcode@v1
|
||||
@@ -92,5 +92,5 @@ jobs:
|
||||
- name: Upload App Package Artifact
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: macos-${{ (github.event.inputs || inputs).flavor }}-${{ github.sha }}
|
||||
name: macos-${{ secrets.VERSION }}
|
||||
path: ${{ github.workspace }}/macos/LunaSea.pkg
|
||||
|
||||
16
.github/workflows/deploy_android.yml
vendored
16
.github/workflows/deploy_android.yml
vendored
@@ -1,19 +1,21 @@
|
||||
name: '[Android] Deploy'
|
||||
name: '[Deploy] Android'
|
||||
|
||||
on:
|
||||
workflow_call:
|
||||
inputs:
|
||||
flavor:
|
||||
required: true
|
||||
type: string
|
||||
secrets:
|
||||
FLAVOR:
|
||||
required: true
|
||||
GOOGLE_PLAY_API:
|
||||
required: true
|
||||
VERSION:
|
||||
required: true
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
name: 'Deploy to Play Store'
|
||||
runs-on: macos-latest
|
||||
env:
|
||||
VERSION_NAME: android-${{ secrets.VERSION }}
|
||||
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
@@ -25,7 +27,7 @@ jobs:
|
||||
- name: Download App Bundle Artifact
|
||||
uses: actions/download-artifact@v2
|
||||
with:
|
||||
name: android-${{ (github.event.inputs || inputs).flavor }}-${{ github.sha }}
|
||||
name: ${{ env.VERSION_NAME }}
|
||||
path: ${{ github.workspace }}
|
||||
|
||||
- name: Install Secret Keys
|
||||
@@ -42,4 +44,4 @@ jobs:
|
||||
SUPPLY_JSON_KEY: ${{ github.workspace }}/.fastlane-android-auth.json
|
||||
run: |
|
||||
bundle install
|
||||
bundle exec fastlane deploy flavor:${{ (github.event.inputs || inputs).flavor }} aab:${{ github.workspace }}/app-release.aab
|
||||
bundle exec fastlane deploy track:${{ secrets.FLAVOR }} aab:${{ github.workspace }}/app-release.aab version_name:${{ env.VERSION_NAME }}
|
||||
|
||||
16
.github/workflows/deploy_ios.yml
vendored
16
.github/workflows/deploy_ios.yml
vendored
@@ -1,11 +1,7 @@
|
||||
name: '[iOS] Deploy'
|
||||
name: '[Deploy] iOS'
|
||||
|
||||
on:
|
||||
workflow_call:
|
||||
inputs:
|
||||
flavor:
|
||||
required: true
|
||||
type: string
|
||||
secrets:
|
||||
APPLE_ID:
|
||||
required: true
|
||||
@@ -21,11 +17,17 @@ on:
|
||||
required: true
|
||||
APPLE_TEAM_ID:
|
||||
required: true
|
||||
FLAVOR:
|
||||
required: true
|
||||
VERSION:
|
||||
required: true
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
name: 'Deploy to App Store'
|
||||
runs-on: macos-latest
|
||||
env:
|
||||
VERSION_NAME: android-${{ secrets.VERSION }}
|
||||
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
@@ -37,7 +39,7 @@ jobs:
|
||||
- name: Download App Package Artifact
|
||||
uses: actions/download-artifact@v2
|
||||
with:
|
||||
name: ios-${{ (github.event.inputs || inputs).flavor }}-${{ github.sha }}
|
||||
name: ${{ env.VERSION_NAME }}
|
||||
path: ${{ github.workspace }}
|
||||
|
||||
- name: Install Secret Keys
|
||||
@@ -59,4 +61,4 @@ jobs:
|
||||
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
|
||||
run: |
|
||||
bundle install
|
||||
bundle exec fastlane deploy flavor:${{ (github.event.inputs || inputs).flavor }} ipa:${{ github.workspace }}/Runner.ipa
|
||||
bundle exec fastlane deploy groups:${{ secrets.FLAVOR }} ipa:${{ github.workspace }}/Runner.ipa
|
||||
|
||||
16
.github/workflows/deploy_macos.yml
vendored
16
.github/workflows/deploy_macos.yml
vendored
@@ -1,11 +1,7 @@
|
||||
name: '[macOS] Deploy'
|
||||
name: '[Deploy] macOS'
|
||||
|
||||
on:
|
||||
workflow_call:
|
||||
inputs:
|
||||
flavor:
|
||||
required: true
|
||||
type: string
|
||||
secrets:
|
||||
APPLE_ID:
|
||||
required: true
|
||||
@@ -21,11 +17,17 @@ on:
|
||||
required: true
|
||||
APPLE_TEAM_ID:
|
||||
required: true
|
||||
FLAVOR:
|
||||
required: true
|
||||
VERSION:
|
||||
required: true
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
name: 'Deploy to App Store'
|
||||
runs-on: macos-latest
|
||||
env:
|
||||
VERSION_NAME: macos-${{ secrets.VERSION }}
|
||||
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
@@ -37,7 +39,7 @@ jobs:
|
||||
- name: Download App Package Artifact
|
||||
uses: actions/download-artifact@v2
|
||||
with:
|
||||
name: macos-${{ (github.event.inputs || inputs).flavor }}-${{ github.sha }}
|
||||
name: ${{ env.VERSION_NAME }}
|
||||
path: ${{ github.workspace }}
|
||||
|
||||
- name: Install Secret Keys
|
||||
@@ -59,4 +61,4 @@ jobs:
|
||||
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
|
||||
run: |
|
||||
bundle install
|
||||
bundle exec fastlane deploy flavor:${{ (github.event.inputs || inputs).flavor }} pkg:${{ github.workspace }}/LunaSea.pkg
|
||||
bundle exec fastlane deploy groups:${{ secrets.FLAVOR }} pkg:${{ github.workspace }}/LunaSea.pkg
|
||||
|
||||
Reference in New Issue
Block a user