-
Notifications
You must be signed in to change notification settings - Fork 25
86 lines (71 loc) · 2.41 KB
/
Copy pathios-ipa-build.yml
File metadata and controls
86 lines (71 loc) · 2.41 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
75
76
77
78
79
80
81
82
83
84
85
86
name: iOS IPA Build
permissions:
contents: write
on:
push:
branches: [main, develop]
paths: ['app/**']
pull_request:
branches: [main]
paths: ['app/**']
workflow_dispatch:
jobs:
build:
runs-on: macos-14
defaults:
run:
working-directory: ./app
steps:
- name: Setup repo
uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4.0.2
with:
node-version: 20.x
cache: 'npm'
cache-dependency-path: ./app/package-lock.json
- name: Select Xcode version
run: sudo xcode-select -s /Applications/Xcode_16.1.app/Contents/Developer
- name: Setup Expo
uses: expo/expo-github-action@v8
with:
expo-version: latest
eas-version: latest
token: ${{ secrets.EXPO_TOKEN }}
- name: Install dependencies
run: npm ci
- name: Initialize EAS
run: eas init --force --non-interactive
- name: Build iOS IPA
run: eas build --platform ios --profile local --local --non-interactive --output ${{ github.workspace }}/app-release.ipa
- name: Generate release tag
id: tag
run: |
echo "RELEASE_TAG=ios-v1.0.0-$(date +'%Y%m%d-%H%M%S')" >> $GITHUB_OUTPUT
echo "RELEASE_NAME=Friend Lite iOS $(date +'%Y-%m-%d %H:%M:%S')" >> $GITHUB_OUTPUT
echo "BUILD_TIME=$(date +'%Y-%m-%d %H:%M:%S UTC')" >> $GITHUB_OUTPUT
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.tag.outputs.RELEASE_TAG }}
release_name: ${{ steps.tag.outputs.RELEASE_NAME }}
body: |
## 🍎 iOS IPA Build
**Built from commit:** ${{ github.sha }}
**Branch:** ${{ github.ref_name }}
**Build time:** ${{ steps.tag.outputs.BUILD_TIME }}
For iOS Simulator testing!
draft: false
prerelease: true
- name: Upload iOS IPA to Release
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ${{ github.workspace }}/app-release.ipa
asset_name: friend-lite-ios.ipa
asset_content_type: application/octet-stream