Skip to content

Commit

Permalink
Try fix build pt2 lol
Browse files Browse the repository at this point in the history
  • Loading branch information
itsnotrin committed Dec 4, 2024
1 parent a5879be commit f76f808
Showing 1 changed file with 27 additions and 8 deletions.
35 changes: 27 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,35 @@ jobs:
with:
xcode-version: '15.2'

- name: List directory contents
run: |
ls -la
find . -name "*.xcodeproj" -o -name "*.xcworkspace"
- name: Build Archive
run: |
xcodebuild archive \
-scheme BetterClasscharts \
-archivePath $RUNNER_TEMP/BetterClasscharts.xcarchive \
-sdk iphoneos \
-configuration Release \
CODE_SIGN_IDENTITY="" \
CODE_SIGNING_REQUIRED=NO \
CODE_SIGNING_ALLOWED=NO
# Try workspace first if it exists
if [ -d "BetterClasscharts.xcworkspace" ]; then
xcodebuild archive \
-workspace BetterClasscharts.xcworkspace \
-scheme BetterClasscharts \
-archivePath $RUNNER_TEMP/BetterClasscharts.xcarchive \
-sdk iphoneos \
-configuration Release \
CODE_SIGN_IDENTITY="" \
CODE_SIGNING_REQUIRED=NO \
CODE_SIGNING_ALLOWED=NO
else
xcodebuild archive \
-project BetterClasscharts.xcodeproj \
-scheme BetterClasscharts \
-archivePath $RUNNER_TEMP/BetterClasscharts.xcarchive \
-sdk iphoneos \
-configuration Release \
CODE_SIGN_IDENTITY="" \
CODE_SIGNING_REQUIRED=NO \
CODE_SIGNING_ALLOWED=NO
fi
- name: Create IPA
run: |
Expand Down

0 comments on commit f76f808

Please sign in to comment.