Main Branch Commit #80
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Main Branch Commit | |
on: | |
push: | |
branches: [ 'main' ] | |
schedule: | |
# At 5:30 am on the 1st and 15th day of the month (every two weeks) | |
- cron: '30 5 1,15 * *' | |
workflow_dispatch: | |
inputs: | |
ios-runner-type: | |
type: choice | |
required: true | |
description: "Runner type" | |
default: "self-hosted" | |
options: | |
- "self-hosted" | |
- "macos-13" | |
env: | |
BUILD_TYPE: 'RELEASE' #BUILD_TYPE: Type of the build; allowed values: 'SNAPSHOT', 'RELEASE' | |
CURRENT_BUILD_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} | |
GITHUB_USERNAME: ${{ secrets.PERSONAL_GITHUB_USERNAME }} | |
GITHUB_PERSONAL_ACCESS_TOKEN: ${{ secrets.PERSONAL_GITHUB_ACCESS_TOKEN }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
MATCH_GIT_AUTHORIZATION: ${{ secrets.MATCH_GIT_AUTHORIZATION }} | |
MATCH_GIT_URL: ${{ secrets.MATCH_GIT_URL }} | |
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }} | |
DEVELOPER_PORTAL_TEAM_ID: ${{ secrets.DEVELOPER_PORTAL_TEAM_ID }} | |
CODE_SIGNING_IDENTITY: ${{ secrets.CODE_SIGNING_IDENTITY }} | |
PROVISIONING_PROFILE_SPECIFIER: ${{ secrets.PROVISIONING_PROFILE_SPECIFIER }} | |
KEYSTORE_FILE: ${{ secrets.KEYSTORE_FILE }} | |
SIGNING_CONFIGS: ${{ secrets.SIGNING_CONFIGS }} | |
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }} | |
FIREBASE_APP_ID_ANDROID: ${{ secrets.FIREBASE_APP_ID_ANDROID }} | |
FIREBASE_APP_ID_IOS: ${{ secrets.FIREBASE_APP_ID_IOS }} | |
TEMP_KEYCHAIN_NAME: ${{ secrets.TEMP_KEYCHAIN_NAME }} | |
HOST_NAME: ${{ secrets.HOST_NAME }} | |
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} | |
CONNECT_API_KEY_ID: ${{ secrets.CONNECT_API_KEY_ID }} | |
CONNECT_API_ISSUER_ID: ${{ secrets.CONNECT_API_ISSUER_ID }} | |
CONNECT_API_KEY_CONTENT: ${{ secrets.CONNECT_API_KEY_CONTENT }} | |
BETA_APP_REVIEW_INFO: ${{ vars.BETA_APP_REVIEW_INFO }} | |
XCODE_VERSION: 15.4 | |
JAVA_VERSION: 11 | |
RUBY_VERSION: 3.1 | |
jobs: | |
lint-and-format: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up Node | |
uses: ./.github/actions/setup-node | |
- name: Lint files | |
run: yarn lint | |
- name: Run formatter | |
run: yarn formatcheck | |
install-and-check-dependencies: | |
runs-on: ubuntu-latest | |
needs: [lint-and-format] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install dependencies | |
run: yarn install | |
- name: Check dependencies | |
run: yarn check-dependencies | |
get-version-number: | |
needs: [install-and-check-dependencies] | |
runs-on: ubuntu-latest | |
outputs: | |
version-number: ${{ steps.get_version.outputs.version-number }} | |
build-number: ${{ steps.get_version.outputs.build-number }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Get version | |
id: get_version | |
uses: ./.github/actions/get-version | |
release-android: | |
runs-on: ubuntu-latest | |
needs: [get-version-number] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Release Android App with old arch | |
uses: ./.github/actions/release-android | |
with: | |
new-arch-enabled: false | |
version-number: ${{ needs.get-version-number.outputs.version-number }} | |
build-number: ${{ needs.get-version-number.outputs.build-number }} | |
release-ios: | |
runs-on: ${{ github.event.inputs.ios-runner-type || 'self-hosted' }} | |
needs: [get-version-number] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Release iOS App with old arch | |
uses: ./.github/actions/release-ios | |
with: | |
new-arch-enabled: false | |
version-number: ${{ needs.get-version-number.outputs.version-number }} | |
build-number: ${{ needs.get-version-number.outputs.build-number }} | |
create-tag: | |
needs: [get-version-number, release-android, release-ios] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Create git tag | |
uses: ./.github/actions/git-tag | |
with: | |
version-number: ${{ needs.get-version-number.outputs.version-number }} | |
build-number: ${{ needs.get-version-number.outputs.build-number }} |