<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Sagar Patel on Medium]]></title>
        <description><![CDATA[Stories by Sagar Patel on Medium]]></description>
        <link>https://medium.com/@sagar.faldu.mi?source=rss-bea8da315575------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*M7c_G4DrE01TU0XnURlPCA.jpeg</url>
            <title>Stories by Sagar Patel on Medium</title>
            <link>https://medium.com/@sagar.faldu.mi?source=rss-bea8da315575------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 21:19:54 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sagar.faldu.mi/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[GitHub Actions: CI/CD and Automate Beta Deployments for your Flutter iOS Apps]]></title>
            <link>https://medium.com/mindful-engineering/github-actions-ci-cd-and-automate-beta-deployments-for-your-flutter-ios-apps-c9cdc8dcf097?source=rss-bea8da315575------2</link>
            <guid isPermaLink="false">https://medium.com/p/c9cdc8dcf097</guid>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[deployment-automation]]></category>
            <category><![CDATA[github-actions]]></category>
            <category><![CDATA[ci-cd-pipeline]]></category>
            <category><![CDATA[flutter]]></category>
            <dc:creator><![CDATA[Sagar Patel]]></dc:creator>
            <pubDate>Mon, 13 Jun 2022 14:07:54 GMT</pubDate>
            <atom:updated>2022-06-14T05:24:22.166Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rGCDiM-9myjpqmp9Ae1HTA.jpeg" /></figure><blockquote><strong>What Are the Github Actions?</strong></blockquote><p>Github Actions is automation software that helps in continuous integration and continuous delivery. It enables the developer to automate many different tasks like building, testing, analyzing, and deploying.</p><blockquote><strong>What is Continuous Integration (CI)?</strong></blockquote><p>Continuous Integration is a practice in which developers commit their code daily to the repository. Every commit is then automatically built which will make it easier to detect different errors that may occur from the commits.</p><blockquote><strong>What is Continuous Delivery (CD)?</strong></blockquote><p>Continuous Delivery is when the software is automatically built, tested, and ready for production. Therefore, continuous delivery helps in automating the release process, the only manual thing that has to be done is deciding when the release should occur.</p><h3>Explaining Workflow File</h3><p>To use Github Actions in your Github repository, then first you need to create the directory .github/workflows:</p><p>Now inside the workflows folder, you need to create yaml files or workflows that will contain different jobs which will be triggered in response to a specific event<br>Ex:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3uso_449f7qr0AqrHjup-A.png" /><figcaption>workflow basic steps</figcaption></figure><p>So the above is a basic workflow file, which we will explain before showing an example with Flutter:</p><ul><li><strong>on:</strong> This will contain the name of the event that will trigger this workflow, or it can contain a list of events, for example in the above file whenever we do a push or pull this workflow file will be triggered.</li><li><strong>name:</strong> This represents the name of this workflow file, which will be shown in the actions tab title.</li><li><strong>jobs:</strong> Each workflow run can contain one or more jobs. Here we used only one job.</li><li><strong>runs-on:</strong> Each job needs to run on a virtual machine (runners) (in our case we used Github&#39;s hosted runner), in the above case we used macos-latest.</li><li><strong>steps:</strong> Each job will contain multiple tasks which are encapsulated with steps.</li><li><strong>run:</strong> Run the appropriate command, for example in the above file we use flutter cleanthat will delete the /build folder.</li><li><strong>name:</strong> The name here is optional, but it can be used to identify the command in the log.</li><li><strong>uses:</strong> Selects an action to run as part of a step in your job, for example in the above file we used actions/checkout@v1. Actions are basically a bunch of commands. You can find different actions from the actions page of GitHub.</li></ul><h3>The easiest way to build a signed Flutter iOS app using GitHub Actions</h3><p>While I suggest you read the official documentation, I will still show you the easiest way (in my opinion) to build your Flutter iOS app. I will also show you the steps I took and my documentation. This way you can be inspired by this article and double-check the sources when you start implementing your own GitHub workflow.</p><p>For a first step, I assume:</p><ul><li>You are familiar with the different iOS build types (development, ad-hoc, app store, and enterprise)</li><li>You are familiar with creating an iOS build certificate and provisioning a profile</li><li>You are familiar with exporting the certificate as .p12 file (password protected).</li></ul><p>If not, read the official Apple documentation <a href="https://help.apple.com/xcode/mac/current/#/dev3a05256b8">here</a>.</p><p>The <a href="https://docs.github.com/en/actions/deployment/deploying-xcode-applications/installing-an-apple-certificate-on-macos-runners-for-xcode-development">documentation</a> of GitHub tells you to include your iOS distribution certificate and provisioning profile as base64 string to your GitHub secrets. However, I also added the other secrets in Actions secrets as below image.</p><p>Token, Username, and Password cases will see further.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XdlAdRv_9PdaFCTyJvuBaA.png" /></figure><p><strong>Let’s do this step vice? ✨</strong></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Ftenor.com%2Fembed%2F24413735&amp;display_name=Tenor&amp;url=https%3A%2F%2Ftenor.com%2Fview%2Fnice-to-meet-you-nic-cage-nicolas-cage-the-unbearable-weight-of-massive-talent-glad-to-meet-you-gif-24413735&amp;image=https%3A%2F%2Fc.tenor.com%2FA0BrIFU6IjgAAAAC%2Fnice-to-meet-you-nic-cage.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=tenor" width="600" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/a49d6375abce3a006c680311737c4a7b/href">https://medium.com/media/a49d6375abce3a006c680311737c4a7b/href</a></iframe><h3>1. Add a Workflow file to your GitHub Project</h3><p>In the root folder of your Flutter project, create a new folder .github and create a subfolder workflows. This is where our workflow YAML files will be placed.<br>A project can have multiple workflow files like build, release, and test as per the requirement. To make this article easy to understand we used one here which is main.yaml.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/509/1*BZP3LSSxWcpTQVaz3wNemA.png" /></figure><h3><strong>2. Add GitHub Token</strong></h3><ul><li>Go to the personal access <a href="https://github.com/settings/tokens">tokens</a> section in your GitHub settings.</li><li>Generate a new token that has scope for repository access and add this token in actions secrete of Github repo(settings/secrets/actions).</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*R58hteH6DWewScvbkmAhzg.png" /></figure><h3>3. Create an app-specific password</h3><p>Go to <a href="https://appleid.apple.com/account/manage">appleid.apple.com</a> then click on App-specific-passwords and generate one.<br>Also, identify the username from the left corner below the profile pic (you can use the email as the username).<br>Now Add password and username in actions secrete of the Github repo(settings/secrets/actions).</p><p>If you don’t see the option to generate app-specific passwords, you’ll need to enable two-factor authentication,</p><h3>4. Write Commands</h3><p>Below is the whole craft of main.yaml</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/9d2c33a340828538a74d9a8e925b0d53/href">https://medium.com/media/9d2c33a340828538a74d9a8e925b0d53/href</a></iframe><blockquote>lines 1–10: To trigger the workflow when there is any pull or push request.</blockquote><blockquote>lines 17–28: Is for checkout the branch and setup the flutter and xcode versions in github’s runner.</blockquote><blockquote>line 30–47: Is for installing the p12 certificates and profiles with building the iOS release.</blockquote><blockquote>49–58: Is for cleaning the Xcode workspace and create the archive file.</blockquote><blockquote>60–90: Is for generating the plist on the air, which is used to export an IPA from created archive file.</blockquote><blockquote>92–109: Is for export the IPA, upload the artifacts to the specific path, delete the extra elements for the iOS folder(to overcome the conflict error when we upload IPA to testflight)</blockquote><blockquote>111–116: Is for push the IPA to GitHub releases dashboard by using the secret TOKEN of which we have stored in actions secrete of github repo.</blockquote><blockquote>118–119: Is for validate the IPA file by using the run script validate-app with params username and app specific password which also we have stored in actions secrete of github repo.</blockquote><blockquote>121–125: Is for upload ipa to the testflight.</blockquote><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Ftenor.com%2Fembed%2F16388786&amp;display_name=Tenor&amp;url=https%3A%2F%2Ftenor.com%2Fview%2Fnicolas-cage-breezy-smiling-feeling-good-nice-weather-gif-16388786&amp;image=https%3A%2F%2Fc.tenor.com%2FgGBK1XkE5oUAAAAC%2Fnicolas-cage-breezy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=tenor" width="600" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/963611281e8f8333882fe25fe2907c3c/href">https://medium.com/media/963611281e8f8333882fe25fe2907c3c/href</a></iframe><p>That’s it. You can find the complete source code of the project on <a href="https://github.com/sagarfaldu17/GithubActions">GitHub</a><strong>. </strong>If you face any issues please post them in the comments section<strong>.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c9cdc8dcf097" width="1" height="1" alt=""><hr><p><a href="https://medium.com/mindful-engineering/github-actions-ci-cd-and-automate-beta-deployments-for-your-flutter-ios-apps-c9cdc8dcf097">GitHub Actions: CI/CD and Automate Beta Deployments for your Flutter iOS Apps</a> was originally published in <a href="https://medium.com/mindful-engineering">Mindful Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>