test 7
This commit is contained in:
@@ -39,23 +39,26 @@ jobs:
|
||||
P12_CERTIFICATE_BASE64: ${{ secrets.IOS_P12_BASE64 }}
|
||||
P12_PASSWORD: ${{ secrets.IOS_P12_PASSWORD }}
|
||||
PROVISIONING_PROFILE_BASE64: ${{ secrets.IOS_PROVISION_BASE64 }}
|
||||
KEYCHAIN_PASSWORD: "temporary_password"
|
||||
run: |
|
||||
# 1. Créer un Keychain temporaire (Indispensable sur macos-latest)
|
||||
security create-keychain -p "$KEYCHAIN_PASSWORD" build.keychain
|
||||
# 1. Supprimer le keychain s'il existe déjà (Évite l'erreur du build précédent)
|
||||
security delete-keychain build.keychain || true
|
||||
|
||||
# 2. Créer le keychain proprement
|
||||
security create-keychain -p "" build.keychain
|
||||
security default-keychain -s build.keychain
|
||||
security unlock-keychain -p "$KEYCHAIN_PASSWORD" build.keychain
|
||||
security unlock-keychain -p "" build.keychain
|
||||
security set-keychain-settings -t 3600 -u build.keychain
|
||||
|
||||
# 2. Importer le certificat .p12
|
||||
# 3. Importer le certificat .p12
|
||||
echo "$P12_CERTIFICATE_BASE64" | base64 -D -o certificate.p12
|
||||
security import certificate.p12 -k build.keychain -P "$P12_PASSWORD" -T /usr/bin/codesign
|
||||
security set-key-partition-list -S apple-tool:,apple: -s -k "$KEYCHAIN_PASSWORD" build.keychain
|
||||
security set-key-partition-list -S apple-tool:,apple: -s -k "" build.keychain
|
||||
|
||||
# 3. Importer le Profil de Provisionnement
|
||||
# 4. Importer le Profil de Provisionnement
|
||||
mkdir -p ~/Library/MobileDevice/Provisioning\ Profiles
|
||||
echo "$PROVISIONING_PROFILE_BASE64" | base64 -D -o ~/Library/MobileDevice/Provisioning\ Profiles/distribution.mobileprovision
|
||||
|
||||
|
||||
- name: Lancer Fastlane & Build IPA
|
||||
working-directory: ./ios
|
||||
env:
|
||||
|
||||
Reference in New Issue
Block a user