-
Notifications
You must be signed in to change notification settings - Fork 0
74 lines (60 loc) · 2.13 KB
/
Copy pathios-release-dev.yml
File metadata and controls
74 lines (60 loc) · 2.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
name: iOS TestFlight (dev)
on:
workflow_dispatch:
concurrency:
group: ios-release-manual-${{ github.ref }}
cancel-in-progress: false
jobs:
build-and-submit:
name: Build and submit iOS
runs-on: macos-latest
timeout-minutes: 90
steps:
- name: Ensure dev branch
run: |
if [ "${GITHUB_REF}" != "refs/heads/dev" ]; then
echo "::error title=Wrong branch::Run this workflow from the dev branch."
exit 1
fi
- name: Checkout
uses: actions/checkout@v5
- name: Select Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable
- name: Setup Node.js
uses: actions/setup-node@v5
with:
node-version: '20.19.4'
cache: 'npm'
- name: Print TestFlight version
working-directory: frontend
run: |
APP_VERSION=$(node -p "require('./app.json').expo.version")
echo "::notice title=iOS TestFlight version::Building a dev TestFlight candidate for iOS version $APP_VERSION."
- name: Setup Expo and EAS
uses: expo/expo-github-action@v8
with:
eas-version: latest
token: ${{ secrets.EXPO_TOKEN }}
- name: Install dependencies
run: npm ci --include=optional
- name: Build iOS (local)
working-directory: frontend
run: eas build --platform ios --profile production --local --non-interactive --output=${{ github.workspace }}/build.ipa
- name: Deploy Convex backend
working-directory: backend
env:
CONVEX_DEPLOY_KEY: ${{ secrets.CONVEX_DEPLOY_KEY }}
run: npx convex deploy
- name: Submit to TestFlight
working-directory: frontend
run: eas submit --platform ios --profile production --path ${{ github.workspace }}/build.ipa --non-interactive
- name: Upload IPA artifact
if: always()
uses: actions/upload-artifact@v4
with:
name: ios-build-${{ github.ref_name }}-${{ github.sha }}
path: ${{ github.workspace }}/build.ipa
if-no-files-found: ignore
retention-days: 2