Flutter GitHub Actions - Automate Your Workflow

Поділитися
Вставка
  • Опубліковано 16 гру 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 😛

  • @hemanthkotagiri8865
    @hemanthkotagiri8865 3 роки тому +3

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

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

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

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

  • @minma02262
    @minma02262 3 роки тому +1

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

  • @iknowishare-9705
    @iknowishare-9705 5 місяців тому

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

  • @Stephen3D
    @Stephen3D 3 місяці тому

    Thank you very much. This video helped greatly!

  • @i.k.shaikh3772
    @i.k.shaikh3772 4 роки тому +1

    Excellently Demonstrated

  • @Pedro5antos_
    @Pedro5antos_ 3 роки тому

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

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

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

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

  • @Flutter_Senpai
    @Flutter_Senpai 10 місяців тому

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

  • @shilpavania4113
    @shilpavania4113 8 місяців тому

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

  • @sayantandas7544
    @sayantandas7544 Рік тому

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

  • @harshitsrivastava9903
    @harshitsrivastava9903 Рік тому

    Thanks a lot🎉

  • @brethagen7776
    @brethagen7776 4 роки тому +6

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

  • @sushilgyawali7880
    @sushilgyawali7880 Рік тому

    Thanks bruh❤

  • @moh-g1j
    @moh-g1j Рік тому

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

  • @officialismailshah
    @officialismailshah 3 роки тому +1

    Please make video on continouse delivery too...

  • @neptuneblue.technology
    @neptuneblue.technology Рік тому

    Merci very helpful

  • @saliouseck4263
    @saliouseck4263 3 роки тому

    thank's it was helpful

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

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

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

  • @aguafria9565
    @aguafria9565 8 місяців тому

    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

  • @SirJagerYT
    @SirJagerYT 3 роки тому

    can we deploy api made with dart on github ?

  • @md.abdulhalimrafi9940
    @md.abdulhalimrafi9940 4 роки тому

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

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

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

  • @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 Рік тому

      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 8 місяців тому

    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