Skip to content

Commit b3153ca

Browse files
authored
Update build_bookify_ios_simulator_app.yaml
-fix: fix workflow ios
1 parent b418f45 commit b3153ca

1 file changed

Lines changed: 18 additions & 12 deletions

File tree

.github/workflows/build_bookify_ios_simulator_app.yaml

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,24 +11,30 @@ on:
1111
jobs:
1212
build:
1313
runs-on: macos-latest
14-
1514
steps:
15+
1616
#1 Checkout code
1717
- name: Checkout code
1818
uses: actions/checkout@v4
1919

20-
#2 Setup Flutter
20+
#2 Setup Xcode
21+
- name: Setup Xcode
22+
uses: maxim-lobanov/setup-xcode@v1
23+
with:
24+
xcode-version: '15'
25+
26+
#3 Setup Flutter
2127
- name: Set up Flutter
2228
uses: subosito/flutter-action@v2
2329
with:
2430
channel: "stable"
2531
flutter-version: "3.32.8"
2632

27-
#3 Install Dependencies
33+
#4 Install Dependencies
2834
- name: Install dependencies
2935
run: flutter pub get
3036

31-
#4 Setup Firebase Config per iOS
37+
#5 Setup Firebase Config per iOS
3238
- name: Setup Firebase Config
3339
run: |
3440
echo "${{ secrets.IOS_GOOGLE_SERVICES_PLIST }}" | base64 --decode > ios/Runner/GoogleService-Info.plist
@@ -37,31 +43,31 @@ jobs:
3743
echo "${{ secrets.FIREBASE_OPTIONS_DART }}" | base64 --decode > lib/firebase_options.dart
3844
3945
40-
#5 Analyze and Test
46+
#6 Analyze and Test
4147
- name: Analyze and Test
4248
run: |
4349
flutter analyze
4450
flutter test
4551
46-
#6 Building iOS App for Simulator
52+
#7 Building iOS App for Simulator
4753
- name: Build iOS App (Simulator)
4854
run: flutter build ios --release --no-codesign
4955

50-
#7 Compress the .app file
56+
#8 Compress the .app file
5157
- name: Compress .app file
5258
run: |
5359
cd build/ios/iphonesimulator
5460
zip -r ../../../Bookify-iOS-Simulator.zip Runner.app
5561
cd ../../../
5662
57-
#8 Extract Version
63+
#9 Extract Version
5864
- name: Extract version from pubspec.yaml
5965
id: extract_version
6066
run: |
6167
version=$(grep '^version: ' pubspec.yaml | cut -d ' ' -f 2 | tr -d '\r')
6268
echo "VERSION=$version" >> $GITHUB_ENV
6369
64-
#9 Check if Tag Exists
70+
#10 Check if Tag Exists
6571
- name: Check if Tag Exists
6672
id: check_tag
6773
run: |
@@ -71,19 +77,19 @@ jobs:
7177
echo "TAG_EXISTS=false" >> $GITHUB_ENV
7278
fi
7379
74-
#10 Modify Tag if it Exists
80+
#11 Modify Tag if it Exists
7581
- name: Modify Tag
7682
if: env.TAG_EXISTS == 'true'
7783
id: modify_tag
7884
run: |
7985
new_version="${{ env.VERSION }}-build-${{ github.run_number }}"
8086
echo "VERSION=$new_version" >> $GITHUB_ENV
8187
82-
#11 Create or Update Release
88+
#12 Create or Update Release
8389
- name: Create or Update Release
8490
uses: ncipollo/release-action@v1
8591
with:
8692
artifacts: "Bookify-iOS-Simulator.zip"
8793
tag: v${{ env.VERSION }}
8894
token: ${{ secrets.GITHUB_TOKEN }}
89-
allowUpdates: true
95+
allowUpdates: true

0 commit comments

Comments
 (0)