Flutter GitHub Actions - Automate Your Workflow

Поделиться
HTML-код
  • Опубликовано: 2 ноя 2024

Комментарии • 72

  • @ShinEduKen
    @ShinEduKen 4 года назад +19

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

    • @RobertBrunhage
      @RobertBrunhage  4 года назад +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 4 года назад +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 😛

  • @tadaspetra
    @tadaspetra 4 года назад +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  4 года назад +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 4 года назад +3

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

    • @RobertBrunhage
      @RobertBrunhage  4 года назад +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 4 года назад +3

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

  • @hemanthkotagiri8865
    @hemanthkotagiri8865 3 года назад +3

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

  • @Stephen3D
    @Stephen3D 2 месяца назад

    Thank you very much. This video helped greatly!

  • @hawkybae
    @hawkybae 4 года назад +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

  • @iknowishare-9705
    @iknowishare-9705 3 месяца назад

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

  • @minma02262
    @minma02262 3 года назад +1

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

  • @i.k.shaikh3772
    @i.k.shaikh3772 4 года назад +1

    Excellently Demonstrated

  • @noname1999x
    @noname1999x 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! 😊

  • @Pedro5antos_
    @Pedro5antos_ 3 года назад

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

  • @d34dsouI
    @d34dsouI 4 года назад +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.

  • @kingsleyusoro6349
    @kingsleyusoro6349 3 года назад +1

    Amazing video
    Thanks so much learnt a lot

  • @atharvaakulkarnii
    @atharvaakulkarnii 4 года назад +1

    Amazing job keep doing it brother 🙌

  • @rodrigomacedo9996
    @rodrigomacedo9996 4 года назад +1

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

  • @aravind.a
    @aravind.a 4 года назад +1

    Wow.. awesome content and good explanation...

  • @harshitsrivastava9903
    @harshitsrivastava9903 Год назад

    Thanks a lot🎉

  • @sushilgyawali7880
    @sushilgyawali7880 Год назад

    Thanks bruh❤

  • @shilpavania4113
    @shilpavania4113 7 месяцев назад

    @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 ??

  • @vinaymama
    @vinaymama 4 года назад +5

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

    • @RobertBrunhage
      @RobertBrunhage  4 года назад +5

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

  • @neptuneblue.technology
    @neptuneblue.technology 11 месяцев назад

    Merci very helpful

  • @sayantandas7544
    @sayantandas7544 Год назад

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

  • @fullstack_journey
    @fullstack_journey 4 года назад +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

  • @brethagen7776
    @brethagen7776 4 года назад +6

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

  • @saliouseck4263
    @saliouseck4263 3 года назад

    thank's it was helpful

  • @rupayanc
    @rupayanc 4 года назад +1

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

    • @RobertBrunhage
      @RobertBrunhage  4 года назад +1

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

  • @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?

  • @Flutter_Senpai
    @Flutter_Senpai 8 месяцев назад

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

  • @officialismailshah
    @officialismailshah 3 года назад +1

    Please make video on continouse delivery too...

  • @taiwo763
    @taiwo763 4 года назад +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  4 года назад +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!

  • @moh-g1j
    @moh-g1j Год назад

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

  • @aguafria9565
    @aguafria9565 7 месяцев назад

    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

  • @pzentenoe
    @pzentenoe 4 года назад +1

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

    • @RobertBrunhage
      @RobertBrunhage  4 года назад +2

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

  • @md.abdulhalimrafi9940
    @md.abdulhalimrafi9940 3 года назад

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

  • @SirJagerYT
    @SirJagerYT 3 года назад

    can we deploy api made with dart on github ?

  • @kapilsharma6488
    @kapilsharma6488 Год назад

    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 11 месяцев назад

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

  • @skbhati199
    @skbhati199 3 года назад

    How to get apk link, ipa link

  • @manishgautam2424
    @manishgautam2424 3 года назад

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

  • @aguafria9565
    @aguafria9565 7 месяцев назад

    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 4 года назад

    Workflow should have failed but it passed