diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index dfed77104a17..2785310c5574 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -13,9 +13,7 @@ jobs: if: github.actor == 'OSBotify' runs-on: ubuntu-latest env: -# TODO: Uncomment when we'd like to deploy to production -# SHOULD_DEPLOY_PRODUCTION: ${{ github.event_name == 'release' }} - SHOULD_DEPLOY_PRODUCTION: ${{ false }} + SHOULD_DEPLOY_PRODUCTION: ${{ github.event_name == 'release' }} steps: - uses: actions/checkout@v2 @@ -47,10 +45,13 @@ jobs: LARGE_SECRET_PASSPHRASE: ${{ secrets.LARGE_SECRET_PASSPHRASE }} - name: Run Fastlane beta + if: ${{ env.SHOULD_DEPLOY_PRODUCTION == 'false' }} run: bundle exec fastlane android beta + # TODO: uncomment when we want to release iOS to production - name: Run Fastlane production - if: ${{ env.SHOULD_DEPLOY_PRODUCTION == 'true' }} +# if: ${{ env.SHOULD_DEPLOY_PRODUCTION == 'true' }} + if: ${{ env.SHOULD_DEPLOY_PRODUCTION == 'true' && 'false' == 'true' }} run: bundle exec fastlane android production env: VERSION: ${{ env.VERSION }} diff --git a/.github/workflows/ios.yml b/.github/workflows/ios.yml index dee19d46c5e5..627e0bec28bd 100644 --- a/.github/workflows/ios.yml +++ b/.github/workflows/ios.yml @@ -16,9 +16,7 @@ jobs: if: github.actor == 'OSBotify' runs-on: macos-latest env: -# TODO: Uncomment when we'd like to deploy to production7 -# SHOULD_DEPLOY_PRODUCTION: ${{ github.event_name == 'release' }} - SHOULD_DEPLOY_PRODUCTION: ${{ false }} + SHOULD_DEPLOY_PRODUCTION: ${{ github.event_name == 'release' }} steps: - uses: actions/checkout@v2 @@ -63,6 +61,7 @@ jobs: LARGE_SECRET_PASSPHRASE: ${{ secrets.LARGE_SECRET_PASSPHRASE }} - name: Run Fastlane + if: ${{ env.SHOULD_DEPLOY_PRODUCTION == 'false' }} run: bundle exec fastlane ios beta env: APPLE_CONTACT_EMAIL: ${{ secrets.APPLE_CONTACT_EMAIL }} @@ -70,8 +69,10 @@ jobs: APPLE_DEMO_EMAIL: ${{ secrets.APPLE_DEMO_EMAIL }} APPLE_DEMO_PASSWORD: ${{ secrets.APPLE_DEMO_PASSWORD }} + # TODO: uncomment when we want to release iOS to production - name: Run Fastlane for App Store release - if: ${{ env.SHOULD_DEPLOY_PRODUCTION == 'true' }} +# if: ${{ env.SHOULD_DEPLOY_PRODUCTION == 'true' }} + if: ${{ env.SHOULD_DEPLOY_PRODUCTION == 'true' && 'false' == 'true' }} run: bundle exec fastlane ios production env: VERSION: ${{ env.NEW_IOS_VERSION }}