fix(fastlane): testflight

This commit is contained in:
mso7nueh
2025-08-08 11:14:41 +03:00
parent 2fac007675
commit 73f27efadd
2 changed files with 24 additions and 1 deletions

View File

@@ -44,9 +44,20 @@ jobs:
- name: Setup API key
run: |
echo "${API_APPSTORE_KEY}" | base64 --decode > ios/AuthKey.p8
echo "API_APPSTORE_KEY length: ${#API_APPSTORE_KEY}"
if [ -z "$API_APPSTORE_KEY" ]; then
echo "ERROR: API_APPSTORE_KEY is empty or not set"
exit 1
fi
echo "${API_APPSTORE_KEY}" | tr -d '\n' | base64 --decode > ios/AuthKey.p8
chmod 600 ios/AuthKey.p8
ls -la ios/AuthKey.p8
echo "File size: $(wc -c < ios/AuthKey.p8) bytes"
echo "First few characters of decoded file:"
head -c 50 ios/AuthKey.p8 | xxd
echo "Current directory: $(pwd)"
echo "Contents of ios directory:"
ls -la ios/
env:
API_APPSTORE_KEY: ${{ vars.API_APPSTORE_KEY }}
@@ -57,6 +68,15 @@ jobs:
flutter pub upgrade
flutter pub run build_runner build --delete-conflicting-outputs
cd ios
echo "Current directory after cd ios: $(pwd)"
echo "Contents of current directory:"
ls -la
echo "Checking if AuthKey.p8 exists:"
if [ -f "AuthKey.p8" ]; then
echo "AuthKey.p8 exists, size: $(wc -c < AuthKey.p8) bytes"
else
echo "AuthKey.p8 does not exist"
fi
pod update
fastlane beta
env:

View File

@@ -18,9 +18,12 @@ default_platform(:ios)
platform :ios do
desc "Push a new beta build to TestFlight"
lane :beta do
UI.message "Current working directory: #{Dir.pwd}"
UI.message "Checking API key file..."
UI.message "Files in current directory: #{Dir.entries('.').join(', ')}"
if File.exist?("./AuthKey.p8")
UI.message "API key file exists"
UI.message "File size: #{File.size('./AuthKey.p8')} bytes"
else
UI.user_error!("API key file not found at ./AuthKey.p8")
end