mirror of
https://github.com/jagandeepbrar/lunasea.git
synced 2026-08-31 20:52:32 +00:00
fix(ci): Do not pass values via environment to prevent leakage
This commit is contained in:
30
.github/workflows/all_platforms.yml
vendored
30
.github/workflows/all_platforms.yml
vendored
@@ -41,20 +41,16 @@ on:
|
||||
description: 'Deploy to Store Fronts?'
|
||||
default: "true"
|
||||
|
||||
env:
|
||||
VERSION: ${{ (github.event.inputs || inputs).flavor }}-${{ github.sha }}
|
||||
FLAVOR: ${{ github.event.inputs.flavor || 'internal' }}
|
||||
|
||||
jobs:
|
||||
jobs:
|
||||
build_android:
|
||||
if: ${{ (github.event.inputs.android || 'true') == 'true' }}
|
||||
uses: CometTools/LunaSea/.github/workflows/build_android.yml@master
|
||||
secrets:
|
||||
FLAVOR: ${{ env.FLAVOR }}
|
||||
FLAVOR: ${{ github.event.inputs.flavor || 'internal' }}
|
||||
GOOGLE_SERVICES_JSON: ${{ secrets.GOOGLE_SERVICES_JSON }}
|
||||
KEY_JKS: ${{ secrets.KEY_JKS }}
|
||||
KEY_PROPERTIES: ${{ secrets.KEY_PROPERTIES }}
|
||||
VERSION: ${{ env.VERSION }}
|
||||
VERSION: ${{ github.event.inputs.flavor || 'internal' }}-${{ github.sha }}
|
||||
|
||||
build_ios:
|
||||
if: ${{ (github.event.inputs.ios || 'true') == 'true' }}
|
||||
@@ -63,13 +59,13 @@ jobs:
|
||||
APPLE_ID: ${{ secrets.APPLE_ID }}
|
||||
APPLE_ITC_TEAM_ID: ${{ secrets.APPLE_ITC_TEAM_ID }}
|
||||
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
|
||||
FLAVOR: ${{ env.FLAVOR }}
|
||||
FLAVOR: ${{ github.event.inputs.flavor || 'internal' }}
|
||||
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 }}
|
||||
VERSION: ${{ github.event.inputs.flavor || 'internal' }}-${{ github.sha }}
|
||||
|
||||
build_macos:
|
||||
if: ${{ (github.event.inputs.macos || 'true') == 'true' }}
|
||||
@@ -78,22 +74,22 @@ jobs:
|
||||
APPLE_ID: ${{ secrets.APPLE_ID }}
|
||||
APPLE_ITC_TEAM_ID: ${{ secrets.APPLE_ITC_TEAM_ID }}
|
||||
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
|
||||
FLAVOR: ${{ env.FLAVOR }}
|
||||
FLAVOR: ${{ github.event.inputs.flavor || 'internal' }}
|
||||
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 }}
|
||||
VERSION: ${{ github.event.inputs.flavor || 'internal' }}-${{ github.sha }}
|
||||
|
||||
deploy_android:
|
||||
needs: build_android
|
||||
if: ${{ (github.event.inputs.deploy || 'true') == 'true' }}
|
||||
uses: CometTools/LunaSea/.github/workflows/deploy_android.yml@master
|
||||
secrets:
|
||||
FLAVOR: ${{ env.FLAVOR }}
|
||||
FLAVOR: ${{ github.event.inputs.flavor || 'internal' }}
|
||||
GOOGLE_PLAY_API: ${{ secrets.GOOGLE_PLAY_API }}
|
||||
VERSION: ${{ env.VERSION }}
|
||||
VERSION: ${{ github.event.inputs.flavor || 'internal' }}-${{ github.sha }}
|
||||
|
||||
deploy_ios:
|
||||
needs: build_ios
|
||||
@@ -107,8 +103,8 @@ 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 }}
|
||||
FLAVOR: ${{ github.event.inputs.flavor || 'internal' }}
|
||||
VERSION: ${{ github.event.inputs.flavor || 'internal' }}-${{ github.sha }}
|
||||
|
||||
deploy_macos:
|
||||
needs: build_macos
|
||||
@@ -122,5 +118,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 }}
|
||||
FLAVOR: ${{ github.event.inputs.flavor || 'internal' }}
|
||||
VERSION: ${{ github.event.inputs.flavor || 'internal' }}-${{ github.sha }}
|
||||
|
||||
6
.github/workflows/deploy_android.yml
vendored
6
.github/workflows/deploy_android.yml
vendored
@@ -14,8 +14,6 @@ jobs:
|
||||
deploy:
|
||||
name: 'Deploy to Play Store'
|
||||
runs-on: macos-latest
|
||||
env:
|
||||
VERSION_NAME: android-${{ secrets.VERSION }}
|
||||
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
@@ -27,7 +25,7 @@ jobs:
|
||||
- name: Download App Bundle Artifact
|
||||
uses: actions/download-artifact@v2
|
||||
with:
|
||||
name: ${{ env.VERSION_NAME }}
|
||||
name: android-${{ secrets.VERSION }}
|
||||
path: ${{ github.workspace }}
|
||||
|
||||
- name: Install Secret Keys
|
||||
@@ -44,4 +42,4 @@ jobs:
|
||||
SUPPLY_JSON_KEY: ${{ github.workspace }}/.fastlane-android-auth.json
|
||||
run: |
|
||||
bundle install
|
||||
bundle exec fastlane deploy track:${{ secrets.FLAVOR }} aab:${{ github.workspace }}/app-release.aab version_name:${{ env.VERSION_NAME }}
|
||||
bundle exec fastlane deploy track:${{ secrets.FLAVOR }} aab:${{ github.workspace }}/app-release.aab version_name:android-${{ secrets.VERSION }}
|
||||
|
||||
4
.github/workflows/deploy_ios.yml
vendored
4
.github/workflows/deploy_ios.yml
vendored
@@ -26,8 +26,6 @@ jobs:
|
||||
deploy:
|
||||
name: 'Deploy to App Store'
|
||||
runs-on: macos-latest
|
||||
env:
|
||||
VERSION_NAME: android-${{ secrets.VERSION }}
|
||||
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
@@ -39,7 +37,7 @@ jobs:
|
||||
- name: Download App Package Artifact
|
||||
uses: actions/download-artifact@v2
|
||||
with:
|
||||
name: ${{ env.VERSION_NAME }}
|
||||
name: ios-${{ secrets.VERSION }}
|
||||
path: ${{ github.workspace }}
|
||||
|
||||
- name: Install Secret Keys
|
||||
|
||||
4
.github/workflows/deploy_macos.yml
vendored
4
.github/workflows/deploy_macos.yml
vendored
@@ -26,8 +26,6 @@ jobs:
|
||||
deploy:
|
||||
name: 'Deploy to App Store'
|
||||
runs-on: macos-latest
|
||||
env:
|
||||
VERSION_NAME: macos-${{ secrets.VERSION }}
|
||||
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
@@ -39,7 +37,7 @@ jobs:
|
||||
- name: Download App Package Artifact
|
||||
uses: actions/download-artifact@v2
|
||||
with:
|
||||
name: ${{ env.VERSION_NAME }}
|
||||
name: macos-${{ secrets.VERSION }}
|
||||
path: ${{ github.workspace }}
|
||||
|
||||
- name: Install Secret Keys
|
||||
|
||||
Reference in New Issue
Block a user