This repository was archived by the owner on May 5, 2025. It is now read-only.
Update build.yml #24
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build apk | |
on: | |
push: | |
branches: | |
- main | |
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 --non-interactive --wait |