Skip to content

Commit

Permalink
chore: Ajouter le certificat de signature et construire l'application
Browse files Browse the repository at this point in the history
  • Loading branch information
lsaudon committed Jul 4, 2024
1 parent 428ce79 commit 5274686
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/example_cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,19 @@ jobs:
cache: true
channel: stable
flutter-version: ${{ env.FLUTTER_VERSION }}
- run: |
- name: 🗒️🔏 Ajouter le certificat de signature
run: |
# Générer un mot de passe aléatoire pour le trousseau de clés temporaire
password=$(cat /dev/urandom | LC_ALL=C tr -dc 'a-zA-Z0-9' | fold -w 50 | head -n 1)
security create-keychain -p "$password" temp.keychain
security set-keychain-settings -lut 21600 temp.keychain
security unlock-keychain -p "$password" temp.keychain
# Décoder le fichier P12 encodé en base64 et l'importer dans le trousseau de clés temporaire
echo "${{ secrets.DEV_IOS_P12_FILE }}" | base64 --decode -o certificat.p12
security import certificat.p12 -P "${{ secrets.DEV_IOS_P12_PASSWORD }}" -A -t cert -f pkcs12 -k temp.keychain
security list-keychain -d user -s temp.keychain
- name: 🧱 Construire l'application
run: |
flutter config --no-cli-animations
flutter build ipa

0 comments on commit 5274686

Please sign in to comment.