Skip to content

Commit

Permalink
chore: Add continuous delivery workflows for iOS
Browse files Browse the repository at this point in the history
  • Loading branch information
lsaudon committed Jul 4, 2024
1 parent 00e7e85 commit 99ee443
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 2 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/example_cd.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: continuous-delivery

on:
push:
tags:
- 'v[0-9]+\.[0-9]+\.[0-9]+\+[0-9]+'

env:
FLUTTER_VERSION: 3.22.2

jobs:
continuous-delivery-ios:
runs-on: macos-latest
defaults:
run:
working-directory: example/ios
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
cache: true
channel: stable
flutter-version: ${{ env.FLUTTER_VERSION }}
- run: cat ../pubspec.yaml
# - run: |
# keychainPassword='cat /dev/urandom | LC_ALL=C tr -dc 'a-zA-Z0-9' | fold -w 50 | head -n 1'
# security create-keychain -p "$keychainPassword" ios_signing_temp.keychain
# security set-keychain-settings -lut 21600 ios_signing_temp.keychain
# security unlock-keychain -p "$keychainPassword" ios_signing_temp.keychain

# echo "${{ secrets.DEV_P12_FILE }}" | base64 --decode -o Certificates.p12
# security import Certificates.p12 -P "${{ secrets.DEV_P12_PWD }}" -A -t cert -f pkcs12 -k ios_signing_temp.keychain
# security list-keychain -d user -s ios_signing_temp.keychain
# - run: |
# echo ${{ secrets.DEV_IOS_PROFILE }} | base64 --decode -o ProvisioningProfile.mobileprovision
# mkdir -p ~/Library/MobileDevice/Provisioning\ Profiles
# uuid=`security cms -D -i ProvisioningProfile.mobileprovision | grep -aA1 UUID | grep -o "[-a-zA-Z0-9]\{36\}"`
# cp ProvisioningProfile.mobileprovision ~/Library/MobileDevice/Provisioning\ Profiles/$uuid.mobileprovision
# - run: echo ${{ secrets.DEV_IOS_PLIST }} | base64 --decode -o exportOptions.plist
# - run: |
# flutter config --no-cli-animations
# flutter build ipa --export-options-plist exportOptions.plist
23 changes: 23 additions & 0 deletions .github/workflows/example_launch_cd.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: launch-continuous-delivery

on:
workflow_dispatch

env:
FLUTTER_VERSION: 3.22.2

jobs:
continuous-delivery-ios:
runs-on: macos-latest
defaults:
run:
working-directory: example/ios
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
cache: true
channel: stable
flutter-version: ${{ env.FLUTTER_VERSION }}
- run: |
keychainPassword='cat /dev/urandom | LC_ALL=C tr -dc 'a-zA-Z0-9' | fold -w 50 | head -n 1'
3 changes: 1 addition & 2 deletions .github/workflows/releascribe_cli.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ jobs:
sdk: "stable"

- name: 📦 Install Dependencies
run: |
dart pub get
run: dart pub get --no-example

- name: 🔎 Verify version
run: dart run test --run-skipped -t version-verify

0 comments on commit 99ee443

Please sign in to comment.