tooot/.github/workflows/build.yml

100 lines
3.7 KiB
YAML
Raw Normal View History

2021-03-14 22:22:26 +01:00
name: build
on:
push:
branches:
- candidate
- release
2021-03-14 21:48:28 +01:00
2021-02-09 01:16:12 +01:00
jobs:
2022-06-10 23:39:57 +02:00
build-ios:
2022-05-03 00:30:35 +02:00
runs-on: macos-12
2021-02-09 01:16:12 +01:00
steps:
2022-12-24 12:55:51 +01:00
- uses: tj-actions/branch-names@v6
2021-03-14 22:22:26 +01:00
id: branch
2022-12-24 12:55:51 +01:00
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
2021-02-09 01:16:12 +01:00
with:
2022-06-11 14:21:39 +02:00
node-version-file: '.nvmrc'
2022-12-24 12:55:51 +01:00
- run: corepack enable
- run: yarn install
- run: bundle install
- run: yarn app:build ios
2021-02-09 01:16:12 +01:00
env:
2023-01-04 00:08:58 +01:00
DEVELOPER_DIR: /Applications/Xcode_14.2.app/Contents/Developer
2022-11-14 17:54:11 +01:00
ENVIRONMENT: ${{ steps.branch.outputs.current_branch }}
SENTRY_ENVIRONMENT: ${{ steps.branch.outputs.current_branch }}
2021-03-14 21:48:28 +01:00
LC_ALL: en_US.UTF-8
LANG: en_US.UTF-8
2021-02-09 01:16:12 +01:00
SENTRY_ORGANIZATION: ${{ secrets.SENTRY_ORGANIZATION }}
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
FASTLANE_USER: ${{ secrets.FASTLANE_USER }}
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}
MATCH_GIT_URL: ${{ secrets.MATCH_GIT_URL }}
MATCH_GIT_BASIC_AUTHORIZATION: ${{ secrets.MATCH_GIT_BASIC_AUTHORIZATION }}
APP_STORE_CONNECT_API_KEY_KEY_ID: ${{ secrets.APP_STORE_CONNECT_API_KEY_KEY_ID }}
APP_STORE_CONNECT_API_KEY_ISSUER_ID: ${{ secrets.APP_STORE_CONNECT_API_KEY_ISSUER_ID }}
APP_STORE_CONNECT_API_KEY_KEY: ${{ secrets.APP_STORE_CONNECT_API_KEY_KEY }}
2022-06-15 00:57:19 +02:00
GH_PAT_GET_RELEASE: ${{ secrets.GITHUB_TOKEN }}
2022-06-10 23:39:57 +02:00
build-android:
2022-06-11 01:35:18 +02:00
runs-on: macos-12
2022-06-10 23:39:57 +02:00
steps:
2022-12-24 12:55:51 +01:00
- uses: tj-actions/branch-names@v6
2022-06-10 23:39:57 +02:00
id: branch
2022-12-24 12:55:51 +01:00
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
2022-06-10 23:39:57 +02:00
with:
2022-06-11 14:21:39 +02:00
node-version-file: '.nvmrc'
2022-12-24 12:55:51 +01:00
- uses: actions/setup-java@v3
2022-06-10 23:39:57 +02:00
with:
distribution: 'zulu'
2022-06-11 21:56:22 +02:00
java-version: '11'
2022-12-24 12:55:51 +01:00
- run: corepack enable
- run: yarn install
- run: bundle install
- run: yarn app:build android
2022-06-10 23:39:57 +02:00
env:
2022-11-14 17:54:11 +01:00
ENVIRONMENT: ${{ steps.branch.outputs.current_branch }}
SENTRY_ENVIRONMENT: ${{ steps.branch.outputs.current_branch }}
2022-06-10 23:39:57 +02:00
LC_ALL: en_US.UTF-8
LANG: en_US.UTF-8
2021-02-09 01:16:12 +01:00
ANDROID_KEYSTORE: ${{ secrets.ANDROID_KEYSTORE }}
ANDROID_KEYSTORE_PASSWORD: ${{ secrets.ANDROID_KEYSTORE_PASSWORD }}
ANDROID_KEYSTORE_ALIAS: ${{ secrets.ANDROID_KEYSTORE_ALIAS }}
ANDROID_KEYSTORE_KEY_PASSWORD: ${{ secrets.ANDROID_KEYSTORE_KEY_PASSWORD }}
SUPPLY_JSON_KEY_DATA: ${{ secrets.SUPPLY_JSON_KEY_DATA }}
2022-06-15 00:57:19 +02:00
GH_PAT_GET_RELEASE: ${{ secrets.GITHUB_TOKEN }}
2022-06-10 23:39:57 +02:00
create-release:
2022-06-11 02:27:30 +02:00
runs-on: macos-12
2022-06-10 23:39:57 +02:00
needs: [build-ios, build-android]
steps:
2022-12-24 12:55:51 +01:00
- uses: tj-actions/branch-names@v6
2022-06-10 23:39:57 +02:00
id: branch
2022-12-24 12:55:51 +01:00
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
2022-06-10 23:39:57 +02:00
with:
2022-06-11 14:21:39 +02:00
node-version-file: '.nvmrc'
2022-12-24 12:55:51 +01:00
- uses: actions/setup-java@v3
2022-06-11 21:26:30 +02:00
with:
distribution: 'zulu'
2022-06-11 21:56:22 +02:00
java-version: '11'
2022-12-24 12:55:51 +01:00
- run: corepack enable
- run: yarn install
- run: bundle install
- run: yarn app:build release
2022-06-10 23:39:57 +02:00
env:
2022-11-14 17:54:11 +01:00
ENVIRONMENT: ${{ steps.branch.outputs.current_branch }}
SENTRY_ENVIRONMENT: ${{ steps.branch.outputs.current_branch }}
2022-06-10 23:39:57 +02:00
LC_ALL: en_US.UTF-8
LANG: en_US.UTF-8
2022-06-25 00:51:13 +02:00
SENTRY_ORGANIZATION: ${{ secrets.SENTRY_ORGANIZATION }}
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
2022-06-11 19:56:26 +02:00
ANDROID_KEYSTORE: ${{ secrets.ANDROID_KEYSTORE }}
ANDROID_KEYSTORE_PASSWORD: ${{ secrets.ANDROID_KEYSTORE_PASSWORD }}
ANDROID_KEYSTORE_ALIAS: ${{ secrets.ANDROID_KEYSTORE_ALIAS }}
ANDROID_KEYSTORE_KEY_PASSWORD: ${{ secrets.ANDROID_KEYSTORE_KEY_PASSWORD }}
2021-02-09 01:16:12 +01:00
FL_GITHUB_RELEASE_API_BEARER: ${{ secrets.GITHUB_TOKEN }}