Skip to content

Commit 3113c09

Browse files
committed
chore: try also create dev-client
1 parent e424177 commit 3113c09

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/build-apk.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,3 +121,27 @@ jobs:
121121
files: android/app/build/outputs/apk/release/app-release-signed.apk
122122
env:
123123
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
124+
125+
# Optionally create an development build
126+
- name: Install expo-dev-client
127+
run: pnpm install expo-dev-client
128+
# Same step as above
129+
- name: Build by eject eas and not remove debug signing key for apk
130+
run: pnpm exec expo prebuild -p android --clean
131+
- name: Build APK
132+
run: |
133+
cd android
134+
./gradlew clean
135+
./gradlew assembleRelease --no-daemon --warning-mode all
136+
- name: Rename Development Build APK
137+
run: mv android/app/build/outputs/apk/release/app-release-unsigned.apk android/app/build/outputs/apk/release/app-release-dev-client.apk
138+
- name: Create Release
139+
uses: softprops/action-gh-release@v1
140+
if: startsWith(github.ref, 'refs/tags/')
141+
with:
142+
draft: true
143+
generate_release_notes: false
144+
files: |
145+
android/app/build/outputs/apk/release/app-release-dev-client.apk
146+
env:
147+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)