ไม่สามารถเล่นวิดีโอนี้
ขออภัยในความไม่สะดวก

Flutter GitHub Actions - Automate Your Workflow

แชร์
ฝัง
  • เผยแพร่เมื่อ 12 ส.ค. 2024
  • GitHub Actions is a tool we can use to automate tedious and boring parts of our Flutter developing process such as applying CI! You will learn how to use it and also apply it to your own project. Course to build a production-ready app 👉 robertbrunhage.com/course
    Timestamps:
    00:00 What Is GitHub Actions
    01:31 Create a testing job
    06:26 Building iOS
    07:50 Building Android
    Source code: github.com/RobertBrunhage/flu...
    ····················································································
    ► All my content is 100% free. I am a strong believer that free education should be available for everyone. Any support is truly appreciated so I can keep making the content completely free.
    ♥ Become a Patreon supporter: / robertbrunhage
    ♥ Subscribe: bit.ly/2SUyRhx
    ····················································································
    ● Website: robertbrunhage.com/
    ● Twitter: / robertbrunhage
    ● Discord: / discord
    ● Instagram: / robertbrunhagedev
    ● Facebook: bit.ly/RobertDev

ความคิดเห็น • 71

  • @ShinEduKen
    @ShinEduKen 3 ปีที่แล้ว +19

    Robert, great video! (maybe dumb) question: where are the binaries located once you build them? Thanks!

    • @RobertBrunhage
      @RobertBrunhage  3 ปีที่แล้ว +38

      Not dumb at all. Right now we don't store the output of the build as we have limited of that in GitHub Actions. This is more to prevent if we make mistakes and break, so it's not possible to build at all.
      If you want to be able to get the output file from iOS and Android you can add this to your workflow which will let you store the actual files. Not sure if you can just copy paste this but should work.
      - name: Upload iPA
      uses: actions/upload-artifact@master
      with:
      name: ios-build
      path: build/ios/iphoneos
      - name: Upload APK
      uses: actions/upload-artifact@master
      with:
      name: apk-build
      path: build/app/outputs/apk/release

    • @brethagen7776
      @brethagen7776 3 ปีที่แล้ว +6

      @@RobertBrunhage Great stuff, exactly what I was looking for.

    • @Apoorvpandey
      @Apoorvpandey 3 ปีที่แล้ว

      @@RobertBrunhage Hi, where to put this?

    • @officialismailshah
      @officialismailshah 3 ปีที่แล้ว

      @@Apoorvpandey i think you should put this under the build code

    • @routadu
      @routadu 3 ปีที่แล้ว

      @@RobertBrunhage so I can build ios app without having a mac 😛

  • @hemanthkotagiri8865
    @hemanthkotagiri8865 3 ปีที่แล้ว +3

    A lot of Fireship vibes in your videos. Great work, keep em comin!

  • @Pedro5antos_
    @Pedro5antos_ 2 ปีที่แล้ว

    AWESOME content! It's my first time studying about CI

  • @tadaspetra
    @tadaspetra 3 ปีที่แล้ว +19

    I never really understood how to use GitHub actions, and this explained it so well, that now I think I'm a pro! Great video! Also i know there is a way to do CD on github actions with Fastlane (i think?). A video on that would be awesome as well 😊

    • @RobertBrunhage
      @RobertBrunhage  3 ปีที่แล้ว +3

      Thanks!
      Yes that is indeed possible, right now I have not dived in to it with GitHub Actions but instead doing that part with Codemagic.
      Will for sure do this in the future though!

    • @tadaspetra
      @tadaspetra 3 ปีที่แล้ว +3

      @@RobertBrunhage Awesome! Do you link codemagic to GitHub Actions?

    • @RobertBrunhage
      @RobertBrunhage  3 ปีที่แล้ว +2

      @@tadaspetra Nope I usually trigger my deployments manually on Codemagic or on Tag.
      Prefer pressing the button myself when I want to deploy most of the times!

    • @tadaspetra
      @tadaspetra 3 ปีที่แล้ว +3

      Robert Brunhage got it! Honestly that’s probably easier unless you work with a team!

  • @minma02262
    @minma02262 3 ปีที่แล้ว +1

    Very nice. Very very nice. Thank you for sharing.

  • @kingsleyusoro6349
    @kingsleyusoro6349 3 ปีที่แล้ว +1

    Amazing video
    Thanks so much learnt a lot

  • @shazplay8878
    @shazplay8878 3 ปีที่แล้ว +1

    Damn this video is insane! Can't describe by words how useful your job is ❤️❤️❤️

    • @RobertBrunhage
      @RobertBrunhage  3 ปีที่แล้ว

      Thank you so much and I am so happy you found the video helpful! 😊

  • @d34dsouI
    @d34dsouI 3 ปีที่แล้ว +1

    Hi Robert, thank you for the great videos. We need a complete testing video for Provider, Mobx structure with unit, widget, integration testing and every other thing related to testing Flutter with Provider and MobX. Everyone is talking about how to build cool stuff but there is no testing tutorial. Thank you.

  • @rodrigomacedo9996
    @rodrigomacedo9996 3 ปีที่แล้ว +1

    Awesome content, thanks for you job and shared your knowledge.

  • @atharvaakulkarnii
    @atharvaakulkarnii 3 ปีที่แล้ว +1

    Amazing job keep doing it brother 🙌

  • @i.k.shaikh3772
    @i.k.shaikh3772 3 ปีที่แล้ว +1

    Excellently Demonstrated

  • @neptuneblue6977
    @neptuneblue6977 8 หลายเดือนก่อน

    Merci very helpful

  • @hawkybae
    @hawkybae 3 ปีที่แล้ว +7

    Very informative. Thank you!
    Please consider a tutorial on Flutter app flavors (for e.x : Prod, Dev, QA), it would pair up with this tutorial nicely :D

  • @sushilgyawali7880
    @sushilgyawali7880 11 หลายเดือนก่อน

    Thanks bruh❤

  • @saliouseck4263
    @saliouseck4263 3 ปีที่แล้ว

    thank's it was helpful

  • @aravind.a
    @aravind.a 3 ปีที่แล้ว +1

    Wow.. awesome content and good explanation...

  • @iknowishare-9705
    @iknowishare-9705 หลายเดือนก่อน

    Amazing work!!!
    Can you show how to deploy to store on the final job on GitHub?

  • @harshitsrivastava9903
    @harshitsrivastava9903 ปีที่แล้ว

    Thanks a lot🎉

  • @md.abdulhalimrafi9940
    @md.abdulhalimrafi9940 3 ปีที่แล้ว

    Can you please show, how can we use environment variables with it?

  • @fullstack_journey
    @fullstack_journey 3 ปีที่แล้ว +1

    is there a way to push the final release apks to another branch on the same repo?? like there is an automatic action to deploy web apps to github pages via gh-pages branch so I was wondering if there was something similar for uploading apks

  • @rupayanc
    @rupayanc 3 ปีที่แล้ว +1

    Hi bro...ur videos are really very good... i never thought i could understand github actions so easily

    • @RobertBrunhage
      @RobertBrunhage  3 ปีที่แล้ว +1

      Thanks so much and glad you finally understood it!
      Check the pinned comment, regarding the files

  • @sayantandas7544
    @sayantandas7544 ปีที่แล้ว

    Hi! Can you please do a video on GitHub Actions + Fastlane?

  • @brethagen7776
    @brethagen7776 3 ปีที่แล้ว +6

    Should have covered where the builds have gone and how we can use them.

  • @harlanx
    @harlanx ปีที่แล้ว

    Hello can you do a tutorial for building for windows and adding it in releases section and also make it so that workflow can only be triggered manually?

  • @TariqMohammad2305
    @TariqMohammad2305 ปีที่แล้ว

    How to push the ios app build to testflight through github actions ?

  • @SirJagerYT
    @SirJagerYT 2 ปีที่แล้ว

    can we deploy api made with dart on github ?

  • @Flutter_Senpai
    @Flutter_Senpai 5 หลายเดือนก่อน

    Where is the apk of the build gets stored at ? how to tell it to upload it on google drive or something ?

  • @shilpavania4113
    @shilpavania4113 4 หลายเดือนก่อน

    @RobertBrunhage Great Tutorial.
    I am implementing this for the first time and i do have one question here that i am using Intl and Jsonserializable which create generated folder in developer mode and just because it's use on developer mode only i didnt push and this generated folder to git which is best practice i guess. But when i automate build it's giving an error jus because this path won't be found so what is the solution here and the correct way ??

  • @officialismailshah
    @officialismailshah 3 ปีที่แล้ว +1

    Please make video on continouse delivery too...

  • @taiwo763
    @taiwo763 3 ปีที่แล้ว +1

    How can I learn more about CI/CD as a mobile dev in flutter ...please cos I nust love this easy steps

    • @RobertBrunhage
      @RobertBrunhage  3 ปีที่แล้ว +1

      I would recommend general reading on CI/CD.
      I use flutter actions for what I showed in the video and also showing code coverage for my tests.
      Then I prefer using codemagic for publishing just because it's so easy to set up!
      So if anything I would recommend checking out codemagic for publishing the app to play and app store in very easy steps!

  • @vinaymama
    @vinaymama 3 ปีที่แล้ว +5

    Hi Robert,
    Is this feature available all developers or is this a paid version for GITHUB

    • @RobertBrunhage
      @RobertBrunhage  3 ปีที่แล้ว +5

      This is free for everyone. If you have a private repo you have limited build minutes and for public you have infinite!

  • @pzentenoe
    @pzentenoe 3 ปีที่แล้ว +1

    Hi Robert.
    How can I deploy to play store and app store with github actions?

    • @RobertBrunhage
      @RobertBrunhage  3 ปีที่แล้ว +2

      A bit more tricky but look in to this: gist.github.com/rodydavis/bde9a9a8c2fcdcf3474c0f50248f2e3a

  • @skbhati199
    @skbhati199 3 ปีที่แล้ว

    How to get apk link, ipa link

  • @kapilsharma6488
    @kapilsharma6488 10 หลายเดือนก่อน

    my case show this
    git st
    git: 'st' is not a git command. See 'git --help'.
    The most similar commands are
    status
    reset
    stage
    stash

    • @NoahFuller-lw3ob
      @NoahFuller-lw3ob 9 หลายเดือนก่อน

      Im pretty sure its just a shortcut he made for git status

  • @aguafria9565
    @aguafria9565 4 หลายเดือนก่อน

    I am DevOps, and it's the first time I'm dealing with flutter. I keep getting an error during the flutter build apk, which is basically main.dart not found. I've updated the pubspec.yaml, and the gradle file to point to the lib folder. Any ideas

  • @manishgautam2424
    @manishgautam2424 2 ปีที่แล้ว

    Want to get github job run time (total time job spent)

  • @aguafria9565
    @aguafria9565 4 หลายเดือนก่อน

    Sverige accent for sure.

  • @aniketkhote9
    @aniketkhote9 3 ปีที่แล้ว

    How to solve error
    Flutter users should run `flutter pub get` instead of `pub get`.

  • @vincent-thomas
    @vincent-thomas 2 ปีที่แล้ว +2

    Du måste vara svensk va? 😊

    • @RobertBrunhage
      @RobertBrunhage  2 ปีที่แล้ว +1

      japp 😊

    • @vincent-thomas
      @vincent-thomas 2 ปีที่แล้ว

      Schysst! 😄

    • @vincent-thomas
      @vincent-thomas 2 ปีที่แล้ว +1

      Jag funderar på vilken `branching` teknik jag ska använda. Antingen trunk based development, gitflow eller githubflow. Vad tycker du är bäst?

    • @RobertBrunhage
      @RobertBrunhage  2 ปีที่แล้ว

      @@vincent-thomas Beror på skulle jag säga, jag är väldigt för trunk-based men github-flow är snarlikt det också.
      Viktigast för mig är att branches är korta, oftast där det dyker upp problem.
      Gör det som är så simpelt som möjligt och ta det som det kommer (ifall man stöter på problem kan man kolla andra lösningar)

    • @vincent-thomas
      @vincent-thomas 2 ปีที่แล้ว

      @@RobertBrunhage Det känns nästan som att gitflow är samma sak som trunk-based, fast brancherna är kortare. Vad är skillnaden ( om man bortser från 'hotfix' och 'release' brancher )?

  • @victortruong2538
    @victortruong2538 3 ปีที่แล้ว

    Workflow should have failed but it passed