Skip to content

Commit

Permalink
chore: Commenter les commandes de création de clé et d'importation de…
Browse files Browse the repository at this point in the history
… certificat
  • Loading branch information
lsaudon committed Jul 4, 2024
1 parent 47a314e commit 7598550
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/example_cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,23 @@ jobs:
steps:
- name: 📚 Git checkout
uses: actions/checkout@v4
- name: 🐦 Install flutter
uses: subosito/flutter-action@v2
with:
cache: true
channel: stable
flutter-version: ${{ env.FLUTTER_VERSION }}
- name: 🗒️🔏 Ajouter le certificat de signature
run: |
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
keychainPassword=$(cat /dev/urandom | LC_ALL=C tr -dc 'a-zA-Z0-9' | fold -w 50 | head -n 1)
echo "$keychainPassword"
# security create-keychain -p "$keychainPassword" temp.keychain
# security set-keychain-settings -lut 21600 temp.keychain
# security unlock-keychain -p "$keychainPassword" temp.keychain
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
# 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: 🐦 Install flutter
uses: subosito/flutter-action@v2
- name: 🧱 Construire l'application
run: |
flutter config --no-cli-animations
Expand Down

0 comments on commit 7598550

Please sign in to comment.