Skip to content

Commit

Permalink
Merge pull request #1932 from Expensify/Rory-SkipStagingDeploysForRel…
Browse files Browse the repository at this point in the history
…easeCreated

Skip mobile staging deploys for production releases
  • Loading branch information
AndrewGable authored Mar 19, 2021
2 parents 8f8dbf6 + c865c83 commit 65f8720
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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 }}
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -63,15 +61,18 @@ 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 }}
APPLE_CONTACT_PHONE: ${{ secrets.APPLE_CONTACT_PHONE }}
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 }}
Expand Down

0 comments on commit 65f8720

Please sign in to comment.