Skip to content

Commit

Permalink
ci: add iOS certificate and provisioning profile settings
Browse files Browse the repository at this point in the history
  • Loading branch information
kosukesaigusa committed Sep 5, 2023
1 parent b4e0b4c commit 56d03ad
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion .github/workflows/release_to_dev.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Flutter CI/CD
name: Release to Dev

on:
push:
Expand Down Expand Up @@ -34,6 +34,25 @@ jobs:
- name: Create dev-dart-define.json from GitHub secret
run: cd packages/mottai_flutter_app && echo '${{ secrets.DEV_DART_DEFINE_JSON_STRING }}' > dev-dart-define.json

- name: Decode and install certificate
run: |
echo ${{ secrets.APPLE_DEVELOPMENT_CERTIFICATE_P12_BASE64_STRING }} | base64 --decode > certificate.p12
security create-keychain -p "" build.keychain
security import certificate.p12 -k build.keychain -P ${{ secrets.APPLE_DEVELOPMENT_CERTIFICATE_P12_PASSWORD }} -A
- name: Decode and install provisioning profile
run: |
echo ${{ secrets.ROVISIONING_PROFILE_BASE64_STRING }} | base64 --decode > profile.mobileprovision
mkdir -p ~/Library/MobileDevice/Provisioning\ Profiles
cp profile.mobileprovision ~/Library/MobileDevice/Provisioning\ Profiles/
- name: Set keychain settings
run: |
security list-keychains -s build.keychain
security default-keychain -s build.keychain
security unlock-keychain -p "" build.keychain
security set-keychain-settings -lut 3600 build.keychain
- name: Flutter Build IPA
run: |
cd packages/mottai_flutter_app
Expand Down

0 comments on commit 56d03ad

Please sign in to comment.