password #15
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build iOS | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- '.github/workflows/build-ios.yml' | |
- 'ios/**' | |
- 'lib/**' | |
- 'pubspec.yaml' | |
jobs: | |
build: | |
runs-on: macos-14 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup Flutter | |
uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: '3.27.3' | |
- name: Install Apple Certificate | |
uses: apple-actions/import-codesign-certs@v1 | |
with: | |
p12-file-base64: ${{ secrets.APPLE_DISTRIBUTION_CERTIFICATE_P12 }} | |
p12-password: ${{ secrets.APPLE_DISTRIBUTION_CERTIFICATE_PASSWORD }} | |
- name: Install the provisioning profile | |
run: | | |
mkdir -p ~/Library/MobileDevice/Provisioning\ Profiles | |
echo "${{ secrets.APPLE_IOS_PROVISION_PROFILE }}" | base64 --decode > ~/Library/MobileDevice/Provisioning\ Profiles/Github_Actions.mobileprovision | |
- name: Set up keychain for signing | |
run: | | |
security create-keychain -p "" build.keychain | |
security default-keychain -s build.keychain | |
security unlock-keychain -p "" build.keychain | |
security set-keychain-settings -lut 3600 build.keychain | |
- name: Verify Certificate Installation | |
run: | | |
security find-identity -v -p codesigning | |
- name: Build iOS App | |
run: | | |
flutter pub get | |
flutter build ipa --release | |
- name: Upload iOS Build | |
uses: actions/upload-artifact@v4 | |
with: | |
name: maid-ios | |
path: build/ios/ipa |