Skip to content

Commit 22cb397

Browse files
committed
ci(suite-native): add possibility to create adhoc native build from any branch
1 parent 388c059 commit 22cb397

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: "[Build] suite-native adhoc"
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
PLATFORM:
7+
type: choice
8+
options:
9+
- all
10+
- android
11+
- ios
12+
description: Select platform to run build
13+
required: true
14+
15+
jobs:
16+
adhoc-build:
17+
if: github.repository == 'trezor/trezor-suite' || github.repository == 'trezor/trezor-suite-private'
18+
name: EAS adhoc build
19+
runs-on: ubuntu-latest
20+
env:
21+
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
22+
EXPO_PUBLIC_ENVIRONMENT: preview
23+
permissions:
24+
contents: read
25+
pull-requests: write
26+
actions: write
27+
steps:
28+
- name: Print selected platform
29+
run: |
30+
echo "Selected platform: ${{ github.event.inputs.PLATFORM }}"
31+
- uses: actions/checkout@v4
32+
- uses: actions/setup-node@v4
33+
with:
34+
node-version-file: ".nvmrc"
35+
cache: yarn
36+
- name: Setup EAS
37+
uses: expo/expo-github-action@v8
38+
with:
39+
eas-version: latest
40+
token: ${{ secrets.EXPO_TOKEN_DEVELOP }}
41+
- name: Install libs
42+
run: |
43+
yarn workspaces focus @suite-native/app
44+
npx patch-package # Apply global patches.
45+
- name: Trigger adhoc build
46+
run: |
47+
yarn native:adhoc -p ${{ github.event.inputs.PLATFORM }} --non-interactive --message ${{ github.sha }}

0 commit comments

Comments
 (0)