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

fix: add expo-dev-client dependency to package.json and bun.lock #22

fix: add expo-dev-client dependency to package.json and bun.lock

fix: add expo-dev-client dependency to package.json and bun.lock #22

Workflow file for this run

name: Build apk
on:
push:
branches:
- feature/deploy
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: 🏗 Setup repo
uses: actions/checkout@v4
- name: 🏗 Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: 21
distribution: temurin
- name: 🏗 Setup Bun
uses: oven-sh/setup-bun@v2
- name: 📝 Create .env file
run: |
echo "SUPABASE_URL=${{ secrets.SUPABASE_URL }}" >> .env
echo "SUPABASE_KEY=${{ secrets.SUPABASE_KEY }}" >> .env
echo "EXPO_ROUTER_APP_ROOT=${{ secrets.EXPO_ROUTER_APP_ROOT }}" >> .env
- name: 📦 Install jq
run: sudo apt-get install jq
- name: 📦 Install dependencies
run: bun install
- name: 🏗 Setup EAS
uses: expo/expo-github-action@v8
with:
packager: bun
eas-version: latest
token: ${{ secrets.EXPO_TOKEN }}
- name: 🚀 Build app
# run: eas build --platform android --profile production --local --output ${{ github.workspace }}/app-release.apk
run: eas build --platform android --profile production --non-interactive --wait
- name: 🔽 Download APK
run: |
BUILD_URL=$(eas build:list --status=finished --limit=1 --json | jq -r '.[0].artifacts.buildUrl')
echo "Downloading from $BUILD_URL"
curl -o ${{ github.workspace }}/app-release.apk "$BUILD_URL"
- name: GH Release
uses: softprops/action-gh-release@v2
with:
name: gift-idea-tracker
tag_name: 1.0.0
files: |
${{ github.workspace }}/app-release.apk