Skip to content

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

Do not merge - Support PR for beta build 519

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

---
name: build-android-beta
on:
push:
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
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
- name: ci/test
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
steps:
- name: ci/checkout-repo
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
- name: ci/prepare-android-build
uses: ./.github/actions/prepare-android-build
env:
STORE_FILE: "${{ secrets.MM_MOBILE_STORE_FILE }}"
STORE_ALIAS: "${{ secrets.MM_MOBILE_STORE_ALIAS }}"
STORE_PASSWORD: "${{ secrets.MM_MOBILE_STORE_PASSWORD }}"
MATTERMOST_BUILD_GH_TOKEN: "${{ secrets.MATTERMOST_BUILD_GH_TOKEN }}"
- name: ci/build-and-deploy-android-beta
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 }}"
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::"
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: "*.aab"

Check failure on line 69 in .github/workflows/build-android-beta.yml

View workflow run for this annotation

GitHub Actions / build-android-beta

Invalid workflow file

The workflow is not valid. .github/workflows/build-android-beta.yml (Line: 69, Col: 11): 'path' is already defined