Compare commits

..

1 Commits

Author SHA1 Message Date
Admin
2efad547b5 ci: inline simple just calls in ios-release, keep just only for complex xcodebuild steps
Some checks failed
CI / Scraper / Test (pull_request) Successful in 9s
CI / Scraper / Lint (pull_request) Successful in 14s
CI / Scraper / Docker Push (pull_request) Has been skipped
CI / UI / Build (pull_request) Successful in 22s
CI / UI / Docker Push (pull_request) Has been skipped
iOS CI / Build (push) Has been cancelled
iOS CI / Test (push) Has been cancelled
iOS Release / Release to TestFlight (push) Has been cancelled
iOS CI / Build (pull_request) Successful in 1m34s
iOS CI / Test (pull_request) Has been cancelled
2026-03-09 12:41:17 +05:00
3 changed files with 20 additions and 15 deletions

View File

@@ -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,10 +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
echo "PROFILE_UUID=$UUID" >> $GITHUB_ENV
cp $PP_PATH ~/Library/MobileDevice/Provisioning\ Profiles/
- name: Write App Store Connect API key
env:
@@ -81,18 +82,25 @@ jobs:
- name: Archive
env:
USER: runner
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
PROFILE_UUID: ${{ env.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

View File

@@ -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:

View File

@@ -136,10 +136,7 @@ ios-archive: ios-gen ios-resolve
-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.