Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not merge - Support PR for beta build 519 #7935

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 15 additions & 5 deletions .github/workflows/build-android-beta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,17 @@ on:
branches:
- build-beta-[0-9]+
- build-beta-android-[0-9]+
pull_request:
types:
- labeled

env:
NODE_VERSION: 18.7.0
TERM: xterm

jobs:
test:
if: ${{ github.event.label.name == 'Build App for Android' }}
runs-on: ubuntu-22.04
steps:
- name: ci/checkout-repo
Expand All @@ -21,6 +25,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,21 +45,26 @@ 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
ANDROID_BUILD_TASK: "assemble,bundle"
run: |
echo "::group::Build"
bundle exec fastlane android build --env android.beta
find . -name '*.apk'
find . -name '*.aab'
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
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
with:
name: android-build-beta-${{ github.run_id }}
path: "*.apk"
path: |
*.apk
*.aab
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
Loading