fix(ci): align with time-until eas init + local eas build flow
Some checks failed
Luggage List Build / build-android (push) Failing after 36s
Luggage List Build / build-web (push) Successful in 1m1s
Luggage List Build / release (push) Has been skipped

This commit is contained in:
2026-04-18 12:03:49 +02:00
parent ada2319508
commit b30fb3b19c
4 changed files with 57 additions and 33 deletions

View File

@@ -9,13 +9,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: 🏗 Setup repo
uses: actions/checkout@v4
uses: actions/checkout@v2
- name: 🏗 Setup Node
uses: actions/setup-node@v4
uses: actions/setup-node@v2
with:
node-version: 22
cache: pnpm
- name: 🏗 Setup pnpm
uses: pnpm/action-setup@v4
@@ -31,22 +30,32 @@ jobs:
- name: 🏗 Setup Android SDK
uses: android-actions/setup-android@v3
- name: 🏗 Setup Expo and EAS
uses: expo/expo-github-action@v8
with:
token: ${{ secrets.EXPO_TOKEN }}
eas-version: latest
packager: pnpm
- name: 📦 Install dependencies
run: pnpm install --frozen-lockfile
run: pnpm install
- name: 🧱 Generate native Android project
run: npx expo prebuild --platform android --non-interactive
- name: 🧩 Init EAS project
run: eas init --non-interactive
- name: 👷 Build release APK
- name: 👷 Build app
run: |
cd android
./gradlew assembleRelease --no-daemon
eas build --local \
--non-interactive \
--output=./app-build \
--platform=android \
--profile=preview
- name: 📝 Rename build to APK
run: cp android/app/build/outputs/apk/release/app-release.apk luggage-list-release.apk
run: mv app-build luggage-list-release.apk
- name: 📤 Upload build artifact
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v3
with:
name: luggage-list-android-preview-build
path: luggage-list-release.apk
@@ -56,21 +65,27 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: 🏗 Setup repo
uses: actions/checkout@v4
uses: actions/checkout@v2
- name: 🏗 Setup Node
uses: actions/setup-node@v4
uses: actions/setup-node@v2
with:
node-version: 22
cache: pnpm
- name: 🏗 Setup pnpm
uses: pnpm/action-setup@v4
with:
version: latest
- name: 🏗 Setup Expo and EAS
uses: expo/expo-github-action@v8
with:
token: ${{ secrets.EXPO_TOKEN }}
eas-version: latest
packager: pnpm
- name: 📦 Install dependencies
run: pnpm install --frozen-lockfile
run: pnpm install
- name: 👷 Build web
run: npx expo export --platform web
@@ -79,7 +94,7 @@ jobs:
run: cd dist && zip -r ../luggage-list-dist.zip .
- name: 📤 Upload build artifact
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v3
with:
name: luggage-list-web-build
path: luggage-list-dist.zip
@@ -90,15 +105,15 @@ jobs:
needs: [build-android, build-web]
steps:
- name: 🏗 Setup repo
uses: actions/checkout@v4
uses: actions/checkout@v2
- name: 📥 Download Android artifact
uses: actions/download-artifact@v4
uses: actions/download-artifact@v3
with:
name: luggage-list-android-preview-build
- name: 📥 Download Web artifact
uses: actions/download-artifact@v4
uses: actions/download-artifact@v3
with:
name: luggage-list-web-build