diff --git a/.github/workflows/native-build.yml b/.github/workflows/native-build.yml index feee12a9..f1780ab9 100644 --- a/.github/workflows/native-build.yml +++ b/.github/workflows/native-build.yml @@ -1,9 +1,6 @@ name: Native build on: push: - branches: - - master - - next tags: - v* @@ -43,7 +40,7 @@ jobs: run: yarn install --immutable - name: Build Mobile Release - run: yarn build:mobile | tee log.txt + run: yarn build:mobile:apk | tee log.txt - name: Parse Asset URL id: url diff --git a/front/apps/mobile/eas.json b/front/apps/mobile/eas.json index 4d2f0a33..61ad4632 100644 --- a/front/apps/mobile/eas.json +++ b/front/apps/mobile/eas.json @@ -14,7 +14,10 @@ }, "preview": { "distribution": "internal", - "channel": "preview" + "channel": "preview", + "android": { + "buildType": "apk" + } }, "production": { "channel": "prod" diff --git a/front/apps/mobile/package.json b/front/apps/mobile/package.json index b2f758de..4298b22f 100644 --- a/front/apps/mobile/package.json +++ b/front/apps/mobile/package.json @@ -9,6 +9,7 @@ "ios": "expo start --ios", "web": "expo start --web", "build": "eas build --profile production --platform android --non-interactive --auto-submit", + "build:apk": "eas build --profile preview --platform android --non-interactive", "build:dev": "eas build --profile development --platform android --non-interactive", "update": "eas update --auto --channel prod" }, diff --git a/front/package.json b/front/package.json index 4bab0130..9c5352d1 100644 --- a/front/package.json +++ b/front/package.json @@ -7,6 +7,7 @@ "mobile": "yarn workspace mobile dev", "build:web": "yarn workspace web build", "build:mobile": "yarn workspace mobile build", + "build:mobile:apk": "yarn workspace mobile build:apk", "build:mobile:dev": "yarn workspace mobile build:dev", "update": "yarn workspace mobile update", "lint": "eslint .",