Skip to content

Commit

Permalink
Do not merge: support PR for beta build 519
Browse files Browse the repository at this point in the history
  • Loading branch information
mvitale1989 committed May 6, 2024
1 parent ce485bb commit 0864832
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/build-android-beta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
branches:
- build-beta-[0-9]+
- build-beta-android-[0-9]+
pull_request:
types:
- labeled

env:
NODE_VERSION: 18.7.0
Expand All @@ -21,6 +24,7 @@ jobs:
uses: ./.github/actions/test

build-and-deploy-android-beta:
if: ${{ github.event.label.name == 'Build App for Android' }}
runs-on: ubuntu-22.04
needs:
- test
Expand All @@ -40,17 +44,17 @@ jobs:
env:
AWS_ACCESS_KEY_ID: "${{ secrets.MM_MOBILE_BETA_AWS_ACCESS_KEY_ID }}"
AWS_SECRET_ACCESS_KEY: "${{ secrets.MM_MOBILE_BETA_AWS_SECRET_ACCESS_KEY }}"
MATTERMOST_WEBHOOK_URL: "${{ secrets.MM_MOBILE_BETA_MATTERMOST_WEBHOOK_URL }}"
#MATTERMOST_WEBHOOK_URL: "${{ secrets.MM_MOBILE_BETA_MATTERMOST_WEBHOOK_URL }}"
SENTRY_AUTH_TOKEN: "${{ secrets.MM_MOBILE_SENTRY_AUTH_TOKEN }}"
SENTRY_DSN_ANDROID: ${{ secrets.MM_MOBILE_BETA_SENTRY_DSN_ANDROID }}
SUPPLY_JSON_KEY: ${{ github.workspace }}/mattermost-mobile-private/android/mattermost-credentials.json
run: |
echo "::group::Build"
bundle exec fastlane android build --env android.beta
echo "::endgroup::"
echo "::group::Deploy to Play Store"
bundle exec fastlane android deploy file:"${{ github.workspace }}/*.apk" --env android.beta
echo "::endgroup::"
#echo "::group::Deploy to Play Store"
#bundle exec fastlane android deploy file:"${{ github.workspace }}/*.apk" --env android.beta
#echo "::endgroup::"
working-directory: ./fastlane

- name: ci/upload-android-beta-build
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/build-pr.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
---
name: build-pr
on:
pull_request:
types:
- labeled
workflow_dispatch:
# pull_request:
# types:
# - labeled

env:
NODE_VERSION: 18.7.0
Expand Down

0 comments on commit 0864832

Please sign in to comment.