Skip to content

Commit 04ce0d7

Browse files
Working on iOS GitHub CI
1 parent 9221162 commit 04ce0d7

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/pr_validation.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,28 @@ jobs:
7979
working-directory: ./packages/flutter_test_runners/example_deep_links
8080

8181
steps:
82+
- name: Decode Provisioning Profile and Certificate
83+
env:
84+
PROVISIONING_PROFILE: ${{ secrets.PROVISIONING_PROFILE }}
85+
SIGNING_CERTIFICATE: ${{ secrets.SIGNING_CERTIFICATE }}
86+
run: |
87+
echo "$PROVISIONING_PROFILE" | base64 --decode > provisioning.mobileprovision
88+
echo "$SIGNING_CERTIFICATE" | base64 --decode > certificate.p12
89+
90+
- name: Install Certificate and Provisioning Profile
91+
env:
92+
CERTIFICATE_PASSWORD: ${{ secrets.SIGNING_CERTIFICATE_PASSWORD }}
93+
run: |
94+
# Install the signing certificate
95+
security import certificate.p12 -k ~/Library/Keychains/login.keychain-db -P "$CERTIFICATE_PASSWORD" -T /usr/bin/codesign
96+
97+
# Move the provisioning profile to the correct location
98+
mkdir -p ~/Library/MobileDevice/Provisioning\ Profiles
99+
mv provisioning.mobileprovision ~/Library/MobileDevice/Provisioning\ Profiles/
100+
101+
# Verify the certificate
102+
security find-identity -p codesigning -v
103+
82104
- name: Checkout repository
83105
uses: actions/checkout@v3
84106

0 commit comments

Comments
 (0)