Merge pull request 'fix: fastlane' (#624) from mso7nueh/eatvio_app:main into main

Reviewed-on: eatvio/eatvio_app#624
This commit is contained in:
mso7nueh
2025-08-08 08:18:14 +00:00
2 changed files with 6 additions and 27 deletions

View File

@@ -44,20 +44,9 @@ jobs:
- name: Setup API key
run: |
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 }}
@@ -68,15 +57,6 @@ 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,14 +18,13 @@ 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")
auth_key_path = "../AuthKey.p8"
if File.exist?(auth_key_path)
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")
UI.user_error!("API key file not found at #{auth_key_path}")
end
match(type: "appstore", readonly: true)
@@ -42,14 +41,14 @@ platform :ios do
app_store_connect_api_key(
key_id: "325JS9JCZH",
issuer_id: "dfa27d1d-2bb8-4d4d-847e-0b32f9b880b3",
key_filepath: "./AuthKey.p8",
key_filepath: "../AuthKey.p8",
duration: 1200,
in_house: false
)
begin
upload_to_testflight(
api_key_path: "./AuthKey.p8",
api_key_path: "../AuthKey.p8",
skip_waiting_for_build_processing: true,
skip_submission: true,
distribute_external: false,