Files
trezor-suite/.github/workflows/release-suite-native-develop.yml
Matej Kriz acd58e6c26 chore(suite-native): simplify ENV variables
- There was a bug using `.env.production` even on develop build of Android in createBundleReleaseJsAndAssets step of gradle.
- ENV variables from `eas.json` are used for EAS builds.
- `.env.development` and `.env.test` files are used for local builds and CI E2E builds.
- Local ENV vars can be overriden by `.env.development.local` and `.env.test.local` files.
2024-09-25 11:54:27 +02:00

54 lines
1.4 KiB
YAML

name: "[Release] suite-native develop"
on:
push:
branches:
- develop
paths:
- "suite-native/**"
- "suite-common/**"
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
build:
if: github.repository == 'trezor/trezor-suite' || github.repository == 'trezor/trezor-suite-private'
name: Install and build
environment: develop-suite-native
runs-on: ubuntu-latest
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
cache: yarn
- name: Setup EAS
uses: expo/expo-github-action@v8
with:
eas-version: latest
token: ${{ secrets.EXPO_TOKEN }}
- name: Install libs
run: yarn workspaces focus @suite-native/app
- name: Build on EAS Android
run: eas build
--platform android
--profile develop
--non-interactive
--no-wait
--message ${{ github.sha }}
working-directory: suite-native/app
- name: Build on EAS iOS
run: eas build
--platform ios
--profile develop
--non-interactive
--auto-submit
--no-wait
--message ${{ github.sha }}
working-directory: suite-native/app