<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>The Ops Community ⚙️: Marie</title>
    <description>The latest articles on The Ops Community ⚙️ by Marie (@marie1).</description>
    <link>https://community.ops.io/marie1</link>
    <image>
      <url>https://community.ops.io/images/z8Lk7WKHxDA8jMWlmgtjV2RZYdajAbtVPGuoDw0O39s/rs:fill:90:90/g:sm/mb:500000/ar:1/aHR0cHM6Ly9jb21t/dW5pdHkub3BzLmlv/L3JlbW90ZWltYWdl/cy91cGxvYWRzL3Vz/ZXIvcHJvZmlsZV9p/bWFnZS80NTIwLzEx/NTI4N2Y3LTY4ZWYt/NDA5Ny1iOTUxLWQy/NDU4MDE0NWMxNC5w/bmc</url>
      <title>The Ops Community ⚙️: Marie</title>
      <link>https://community.ops.io/marie1</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://community.ops.io/feed/marie1"/>
    <language>en</language>
    <item>
      <title>To automate the deployment of your Flutter iOS app using GitHub Actions and Codemagic CLI,</title>
      <dc:creator>Marie</dc:creator>
      <pubDate>Sat, 09 Nov 2024 07:51:39 +0000</pubDate>
      <link>https://community.ops.io/marie1/to-automate-the-deployment-of-your-flutter-ios-app-using-github-actions-and-codemagic-cli-10j6</link>
      <guid>https://community.ops.io/marie1/to-automate-the-deployment-of-your-flutter-ios-app-using-github-actions-and-codemagic-cli-10j6</guid>
      <description>&lt;p&gt;To automate the deployment of your Flutter iOS app using GitHub Actions and Codemagic CLI, follow these steps to set up a smooth CI/CD pipeline—like automating content updates for a site like &lt;a href="https://animesuges.mom/" rel="noopener noreferrer"&gt;Animesuge&lt;/a&gt;.&lt;br&gt;
Step 1: Set Up Codemagic CLI&lt;br&gt;
First, install Codemagic CLI Tools (codemagic.yaml configuration) in your Flutter project. Codemagic CLI will handle builds, signing, and deployments directly from the command line, which is essential for automation.&lt;/p&gt;

&lt;p&gt;Visit Codemagic's CLI tools page and set up authentication tokens.&lt;br&gt;
Configure codemagic.yaml in your project root with your specific iOS build configuration.&lt;br&gt;
Step 2: Create GitHub Action Workflow&lt;br&gt;
In your GitHub repository, create a workflow file under .github/workflows/ci_cd.yml. Here’s a basic example:&lt;br&gt;
name: iOS Deployment&lt;br&gt;
on:&lt;br&gt;
  push:&lt;br&gt;
    branches:&lt;br&gt;
      - main&lt;/p&gt;

&lt;p&gt;jobs:&lt;br&gt;
  build:&lt;br&gt;
    runs-on: macos-latest&lt;br&gt;
    steps:&lt;br&gt;
      - name: Checkout Code&lt;br&gt;
        uses: actions/checkout@v2&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;  - name: Install Flutter
    uses: subosito/flutter-action@v2
    with:
      flutter-version: 'latest'

  - name: Install Codemagic CLI
    run: brew install codemagic

  - name: Build iOS App
    run: codemagic build --ios

  - name: Deploy to App Store
    run: codemagic publish
    env:
      APP_STORE_CONNECT_API_KEY: ${{ secrets.APP_STORE_CONNECT_API_KEY }}
      APP_STORE_CONNECT_ISSUER_ID: ${{ secrets.APP_STORE_CONNECT_ISSUER_ID }}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;Step 3: Set Up Secrets&lt;br&gt;
In GitHub, go to Settings &amp;gt; Secrets for your repository. Add the necessary secrets, like APP_STORE_CONNECT_API_KEY and APP_STORE_CONNECT_ISSUER_ID, to authorize the Codemagic CLI.&lt;/p&gt;

&lt;p&gt;Step 4: Trigger the Action&lt;br&gt;
Every time you push a change to the main branch, GitHub Actions will automatically start a new build using Codemagic CLI. Once successful, your iOS app will be deployed to the App Store.&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
