Compare commits
1 Commits
ios-v1.0.6
...
2efad547b5
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2efad547b5 |
@@ -6,8 +6,8 @@ on:
|
||||
- "ios-v*"
|
||||
|
||||
concurrency:
|
||||
group: ios-macos-runner
|
||||
cancel-in-progress: false
|
||||
group: ${{ gitea.workflow }}-${{ gitea.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
# ── archive & release to TestFlight ──────────────────────────────────────
|
||||
@@ -32,7 +32,10 @@ jobs:
|
||||
run: command -v just || brew install just
|
||||
|
||||
- name: Set build number from run number
|
||||
run: just ios-set-build-number ${{ gitea.run_number }}
|
||||
run: |
|
||||
sed -i '' \
|
||||
's/CURRENT_PROJECT_VERSION: .*/CURRENT_PROJECT_VERSION: ${{ gitea.run_number }}/' \
|
||||
ios/LibNovel/project.yml
|
||||
|
||||
- name: Import signing certificate
|
||||
env:
|
||||
@@ -57,9 +60,8 @@ jobs:
|
||||
run: |
|
||||
PP_PATH=$RUNNER_TEMP/profile.mobileprovision
|
||||
echo "$PROFILE_BASE64" | base64 --decode > $PP_PATH
|
||||
UUID=$(security cms -D -i "$PP_PATH" | plutil -extract UUID raw -)
|
||||
mkdir -p ~/Library/MobileDevice/Provisioning\ Profiles
|
||||
cp $PP_PATH ~/Library/MobileDevice/Provisioning\ Profiles/$UUID.mobileprovision
|
||||
cp $PP_PATH ~/Library/MobileDevice/Provisioning\ Profiles/
|
||||
|
||||
- name: Write App Store Connect API key
|
||||
env:
|
||||
@@ -80,23 +82,25 @@ jobs:
|
||||
- name: Archive
|
||||
env:
|
||||
USER: runner
|
||||
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
|
||||
run: |
|
||||
PROFILE_UUID=$(security cms -D -i $RUNNER_TEMP/profile.mobileprovision | plutil -extract UUID raw -)
|
||||
echo "DEBUG: PROFILE_UUID=$PROFILE_UUID"
|
||||
echo "DEBUG: APPLE_TEAM_ID=$APPLE_TEAM_ID"
|
||||
echo "DEBUG: profiles dir listing:"
|
||||
ls ~/Library/MobileDevice/Provisioning\ Profiles/
|
||||
just ios-archive "$PROFILE_UUID"
|
||||
run: just ios-archive
|
||||
|
||||
- name: Export IPA
|
||||
run: just ios-export
|
||||
run: |
|
||||
xcodebuild -exportArchive \
|
||||
-archivePath $RUNNER_TEMP/LibNovel.xcarchive \
|
||||
-exportPath $RUNNER_TEMP/ipa \
|
||||
-exportOptionsPlist ios/LibNovel/ExportOptions.plist
|
||||
|
||||
- name: Upload to TestFlight
|
||||
env:
|
||||
ASC_KEY_ID: ${{ secrets.ASC_KEY_ID }}
|
||||
ASC_ISSUER_ID: ${{ secrets.ASC_ISSUER_ID }}
|
||||
run: just ios-upload
|
||||
run: |
|
||||
xcrun altool --upload-app \
|
||||
--type ios \
|
||||
--file $RUNNER_TEMP/ipa/LibNovel.ipa \
|
||||
--apiKey "$ASC_KEY_ID" \
|
||||
--apiIssuer "$ASC_ISSUER_ID"
|
||||
|
||||
- name: Upload IPA artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
|
||||
@@ -17,7 +17,7 @@ on:
|
||||
- ".gitea/workflows/ios-release.yaml"
|
||||
|
||||
concurrency:
|
||||
group: ios-macos-runner
|
||||
group: ${{ gitea.workflow }}-${{ gitea.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
|
||||
@@ -49,12 +49,6 @@ targets:
|
||||
TARGETED_DEVICE_FAMILY: "1,2" # iPhone + iPad
|
||||
GENERATE_INFOPLIST_FILE: NO
|
||||
INFOPLIST_FILE: LibNovel/Resources/Info.plist
|
||||
configs:
|
||||
Release:
|
||||
CODE_SIGN_STYLE: Manual
|
||||
CODE_SIGN_IDENTITY: "iPhone Distribution"
|
||||
DEVELOPMENT_TEAM: GHZXC6FVMU
|
||||
PROVISIONING_PROFILE: $(PROFILE_UUID)
|
||||
|
||||
LibNovelTests:
|
||||
type: bundle.unit-test
|
||||
|
||||
8
justfile
8
justfile
@@ -130,17 +130,13 @@ ios-test: ios-gen ios-resolve
|
||||
# Archive a signed Release build (requires valid signing identity in keychain).
|
||||
# Output: {{runner_temp}}/LibNovel.xcarchive
|
||||
# Typically called from CI after importing certificate + provisioning profile.
|
||||
# Usage: just ios-archive <profile-uuid>
|
||||
ios-archive profile_uuid: ios-gen ios-resolve
|
||||
ios-archive: ios-gen ios-resolve
|
||||
cd {{ios_dir}} && xcodebuild archive \
|
||||
-project {{ios_scheme}}.xcodeproj \
|
||||
-scheme {{ios_scheme}} \
|
||||
-configuration Release \
|
||||
-clonedSourcePackagesDirPath {{ios_spm}} \
|
||||
-archivePath {{runner_temp}}/LibNovel.xcarchive \
|
||||
CODE_SIGN_STYLE=Manual \
|
||||
DEVELOPMENT_TEAM="$APPLE_TEAM_ID" \
|
||||
PROVISIONING_PROFILE="{{profile_uuid}}"
|
||||
-archivePath {{runner_temp}}/LibNovel.xcarchive
|
||||
|
||||
# Export an IPA from the archive produced by ios-archive.
|
||||
# Requires ios/LibNovel/ExportOptions.plist.
|
||||
|
||||
Reference in New Issue
Block a user