Skip to content
This repository was archived by the owner on May 5, 2025. It is now read-only.

Commit 6801613

Browse files
committed
fix: update build workflow to install jq and modify build command for APK download
1 parent 4872ad2 commit 6801613

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/build.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ jobs:
3535
echo "SUPABASE_KEY=${{ secrets.SUPABASE_KEY }}" >> .env
3636
echo "EXPO_ROUTER_APP_ROOT=${{ secrets.EXPO_ROUTER_APP_ROOT }}" >> .env
3737
38+
- name: 📦 Install jq
39+
run: sudo apt-get install jq
40+
3841
- name: 📦 Install dependencies
3942
run: bun install
4043

@@ -47,7 +50,13 @@ jobs:
4750

4851
- name: 🚀 Build app
4952
# run: eas build --platform android --profile production --local --output ${{ github.workspace }}/app-release.apk
50-
run: eas build --platform android --profile production --output ${{ github.workspace }}/app-release.apk
53+
run: eas build --platform android --profile production --non-interactive --wait
54+
55+
- name: 🔽 Download APK
56+
run: |
57+
BUILD_URL=$(eas build:list --status=finished --limit=1 --json | jq -r '.[0].artifacts.buildUrl')
58+
echo "Downloading from $BUILD_URL"
59+
curl -o ${{ github.workspace }}/app-release.apk "$BUILD_URL"
5160
5261
- name: GH Release
5362
uses: softprops/action-gh-release@v2

0 commit comments

Comments
 (0)