fix: fastlane

This commit is contained in:
mso7nueh
2025-08-06 15:42:02 +03:00
parent 108e067b11
commit 1387e20553
2 changed files with 4 additions and 73 deletions

View File

@@ -11,30 +11,6 @@ jobs:
- name: Checkout
uses: actions/checkout@v2
- name: Checkout env repository
uses: actions/checkout@v2
with:
repository: mso7nueh/eatvio_app_env
path: env_repo
token: ${{ vars.MSO7NUEH_TOKEN }}
ref: main
- name: Copy .env file
run: |
mkdir -p env
cp env_repo/.env env/.env
- name: Load environment variables from .env
run: |
set -a
source env/.env
set +a
# Export all variables to GITHUB_ENV
while IFS= read -r line; do
if [[ $line =~ ^[A-Za-z_][A-Za-z0-9_]*= ]]; then
echo "$line" >> $GITHUB_ENV
fi
done < env/.env
- name: Unlock login keychain
run: |
@@ -51,24 +27,7 @@ jobs:
flutter pub run build_runner build --delete-conflicting-outputs
cd ios
pod update
# Install/update fastlane
bundle install
# Retry logic for fastlane upload
for i in {1..3}; do
echo "Attempt $i of 3 for fastlane upload"
if bundle exec fastlane beta; then
echo "Fastlane upload successful on attempt $i"
break
else
echo "Fastlane upload failed on attempt $i"
if [ $i -eq 3 ]; then
echo "All attempts failed"
exit 1
fi
echo "Waiting 30 seconds before retry..."
sleep 30
fi
done
fastlane beta
env:
LANG: en_US.UTF-8
LC_ALL: en_US.UTF-8
@@ -77,4 +36,4 @@ jobs:
MATCH_GIT_URL: http://gitea.office.local:3000/mso7nueh/fastlane
FASTLANE_USER: eatvio2023@icloud.com
FASTLANE_APPLE_APPLICATION_SPECIFIC_PASSWORD: ${{ vars.FASTLANE_APPLE_APPLICATION_SPECIFIC_PASSWORD }}
API_APPSTORE_KEY: ${{ vars.API_APPSTORE_KEY }}
API_APPSTORE_KEY: ${{ vars.API_APPSTORE_KEY }}