forked from eatvio/eatvio_app
fix(fastlane): testflight
This commit is contained in:
@@ -44,9 +44,20 @@ jobs:
|
|||||||
|
|
||||||
- name: Setup API key
|
- name: Setup API key
|
||||||
run: |
|
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
|
chmod 600 ios/AuthKey.p8
|
||||||
ls -la 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:
|
env:
|
||||||
API_APPSTORE_KEY: ${{ vars.API_APPSTORE_KEY }}
|
API_APPSTORE_KEY: ${{ vars.API_APPSTORE_KEY }}
|
||||||
|
|
||||||
@@ -57,6 +68,15 @@ jobs:
|
|||||||
flutter pub upgrade
|
flutter pub upgrade
|
||||||
flutter pub run build_runner build --delete-conflicting-outputs
|
flutter pub run build_runner build --delete-conflicting-outputs
|
||||||
cd ios
|
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
|
pod update
|
||||||
fastlane beta
|
fastlane beta
|
||||||
env:
|
env:
|
||||||
|
|||||||
@@ -18,9 +18,12 @@ default_platform(:ios)
|
|||||||
platform :ios do
|
platform :ios do
|
||||||
desc "Push a new beta build to TestFlight"
|
desc "Push a new beta build to TestFlight"
|
||||||
lane :beta do
|
lane :beta do
|
||||||
|
UI.message "Current working directory: #{Dir.pwd}"
|
||||||
UI.message "Checking API key file..."
|
UI.message "Checking API key file..."
|
||||||
|
UI.message "Files in current directory: #{Dir.entries('.').join(', ')}"
|
||||||
if File.exist?("./AuthKey.p8")
|
if File.exist?("./AuthKey.p8")
|
||||||
UI.message "API key file exists"
|
UI.message "API key file exists"
|
||||||
|
UI.message "File size: #{File.size('./AuthKey.p8')} bytes"
|
||||||
else
|
else
|
||||||
UI.user_error!("API key file not found at ./AuthKey.p8")
|
UI.user_error!("API key file not found at ./AuthKey.p8")
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user