Skip to content

Commit 80eae86

Browse files
authored
Merge pull request #429 from CodeWithCJ/dev2
iOS workflow udpate fix
2 parents 196215b + 54e09cf commit 80eae86

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

.github/workflows/ios.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,14 @@ jobs:
2727

2828
# 4️⃣ Install CocoaPods
2929
- name: Install CocoaPods
30+
working-directory: SparkyFitnessMobile/ios
3031
run: |
31-
cd ios
3232
pod install
33-
cd ..
3433
3534
# 5️⃣ Build iOS app (UNSIGNED – free account)
3635
- name: Build iOS App (Unsigned)
36+
working-directory: SparkyFitnessMobile/ios
3737
run: |
38-
cd ios
3938
xcodebuild clean archive \
4039
-workspace SparkyFitnessMobile.xcworkspace \
4140
-scheme SparkyFitnessMobile \
@@ -44,23 +43,21 @@ jobs:
4443
CODE_SIGNING_ALLOWED=NO \
4544
CODE_SIGNING_REQUIRED=NO \
4645
CODE_SIGN_IDENTITY=""
47-
cd ..
4846
4947
# 6️⃣ Export unsigned IPA
5048
- name: Export Unsigned IPA
49+
working-directory: SparkyFitnessMobile/ios
5150
run: |
52-
cd ios
5351
mkdir -p build/ipa
5452
xcodebuild -exportArchive \
5553
-archivePath build/SparkyFitnessMobile.xcarchive \
5654
-exportPath build/ipa \
5755
-exportOptionsPlist /dev/null
58-
cd ..
5956
6057
# 7️⃣ Attach IPA to GitHub Release
6158
- name: Upload IPA to Release
6259
uses: softprops/action-gh-release@v1
6360
with:
64-
files: ios/build/ipa/*.ipa
61+
files: SparkyFitnessMobile/ios/build/ipa/*.ipa
6562
env:
6663
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)