Deploying Blazor Mini Course: GitHub Actions and Continuous Delivery

Sdílet
Vložit
  • čas přidán 7. 05. 2023
  • Deploying Blazor is really easy. But instead of me just showing you a few magic steps, we are going to break down the deployment process and understand each piece well. That way, you are prepared to use each step in the real world with a real project.
    In the last video, we created a Blazor Server project and displayed the connection string, we set up a GitHub repository, and we configured our Azure Web app that we want to deploy to. Now in this video, we are going to set up the GitHub Action to deploy our site automatically when we commit code to the repository.
    Playlist: • Deploying Blazor Mini ...
    Full Training Courses: IAmTimCorey.com
    Source Code: leadmagnets.app/?Resource=DB-...
    Mailing List: signup.iamtimcorey.com/

Komentáře • 43

  • @jamisonr
    @jamisonr Před 5 měsíci +1

    Just tried all this with .Net 8 Blazor (including the publish to Azure). Steps are identical, and screens are 95% the same as well. Very easy to follow, thanks.

  • @saddamhossaindotnet
    @saddamhossaindotnet Před rokem +2

    Just Awesome! Thank you so much!

  • @JoeBonez
    @JoeBonez Před rokem +3

    Why would you choose GitHub actions over Azure DevOps or vice-versa?

    • @IAmTimCorey
      @IAmTimCorey  Před rokem +2

      Microsoft owns both. They recommend going to GitHub if you are a new project. They also put the new features in GitHub first.

  • @justinmarshall1930
    @justinmarshall1930 Před 2 měsíci

    Thanks Tim, great fun!

  • @vitorarchanjovasconcelosch1444

    Hi Tim! First of all thanks for the great video! I'm using .NET 7.0 and when I publish my app through Github Actions it works but I get the Application Error message when accessing the website, so I tried through the publication interface in VisualStudio, and it shows an error in Swagger, and I can't find what could be . I checked the dependencies and everything seems to be fine

  • @J_birdy814
    @J_birdy814 Před 3 měsíci

    Amazing as always! Would be nice to see best practices in creating self hosted runners and deployments with actions for IIS servers. :)

    • @IAmTimCorey
      @IAmTimCorey  Před 3 měsíci

      Thanks for the suggestion. Please add it to the list on the suggestion site so others can vote on it as well: suggestions.iamtimcorey.com/

  • @GenCodeFPV
    @GenCodeFPV Před 14 dny

    I dont have Deployment Section or Deployment Center, after Events next section is Settings. Any way to add this?

  • @migueld6851
    @migueld6851 Před 10 měsíci

    hey bro thanks for sharing this videos. :D

  • @luisfernandodeolazabalsche3317

    Muchas gracias

  • @hqcart1
    @hqcart1 Před rokem

    Hello tim, why would we want to add another level of complexity while we can push directly github? are there any benefits?
    Thank you.

    • @IAmTimCorey
      @IAmTimCorey  Před rokem +1

      This isn't standing in between you pushing to GitHub. It is setting up an automation so that when you do push to GitHub, the deployment happens automatically to Azure.

    • @hqcart1
      @hqcart1 Před rokem

      @@IAmTimCorey Thank you for clarification!

  • @caseyspaulding
    @caseyspaulding Před rokem

    Much appreciated

  • @muzammilghani2492
    @muzammilghani2492 Před 10 měsíci

    Thanks for teach us sir. please tell me what's wrong with I got this error while deploying in GitHub. I used same config as yours.
    "Specify which project or solution file to use because this folder contains"

    • @IAmTimCorey
      @IAmTimCorey  Před 10 měsíci

      It sounds like you might have additional layers in your application or multiple UI layers.

    • @muzammilghani2492
      @muzammilghani2492 Před 10 měsíci

      @@IAmTimCorey Yes, I do.

  • @guillaumeboucher8022
    @guillaumeboucher8022 Před rokem

    Does the same can be done with gitlabs ?

    • @IAmTimCorey
      @IAmTimCorey  Před rokem

      Something similar, yes, but not with the automation from Azure.

  • @Cobse85
    @Cobse85 Před 9 měsíci

    Hi Tim.
    Tried to comment with links but seems to be removed.
    MS docs are saying that this isn't possible with Linux. Tried to do what you did here with Linux an all I get is: "Your web app is running and waiting for your content"
    In the previous video you've used Linux in Azure, but I assume you're using Windows for this showcase?
    Thanks for great video content!

    • @IAmTimCorey
      @IAmTimCorey  Před 9 měsíci

      No, it runs just fine on Linux. I'm wondering if you are looking at documentation around the .NET Framework. That will only run on Windows. Although, Blazor is just in ASP.NET Core. If you look at 1:21, you will see that the operating system is Linux. Also, the build server uses Ubuntu to build the project and deploy it.

  • @sylinxstark3882
    @sylinxstark3882 Před 2 měsíci

    Hello i did everything same but i am getting error on deployment -> Unable to find any artifacts for the associated workflow. And when it comes to build it gives a warning for this " The "--output" option isn't supported when building a solution" and also this " No files were found with the provided path: /home/runner/.dotnet/myapp. No artifacts will be uploaded." my yml file same as your yml file i don't know why but something wrong can you help me ?

    • @sylinxstark3882
      @sylinxstark3882 Před 2 měsíci

      and i have also this Specifying a solution-level output path results in all projects copying outputs to the same directory, which can lead to inconsistent builds. [/home/runner/work/PostAutomator/PostAutomator/PostAutomator.sln]. I did not touch any output path.

    • @sylinxstark3882
      @sylinxstark3882 Před 2 měsíci

      Okey i found the solution after many things i tried. If someone from future get this error try this -> In visiual studio go to solution explorer -> rigth click your solution -> restore nuget packages and save. Your project.sln should have some new things about release and debug configs after that you will be able to deploy.

    • @IAmTimCorey
      @IAmTimCorey  Před 2 měsíci

      I’m glad you figured it out.

  • @TYNEPUNK
    @TYNEPUNK Před 2 měsíci

    My screens are totally different ;-/

    • @IAmTimCorey
      @IAmTimCorey  Před 2 měsíci

      Do you have a different version of Visual Studio?

    • @TYNEPUNK
      @TYNEPUNK Před 2 měsíci

      @@IAmTimCorey I mean in azure :) its ok I think I got the gist, great videos!.. just waiting to see if it will deploy, if so that is mighty simple. shame about azure costs though.

    • @IAmTimCorey
      @IAmTimCorey  Před 2 měsíci

      Azure costs should be almost $0. I forget exactly what we deploy in this course, but 10 websites are free for life, 1 SQL database is free for life, 1 CosmosDB database is free for life, etc. I don't think you should be paying for anything with this demo. And if you know how to do it, Azure is a LOT cheaper than the alternatives. The key is what you get. If you just want a random place to put a website, Azure probably won't be the cheapest. If you want production-level backups, server maintenance, data protections, the ability to easy scale, and more then Azure is the cheapest option in most cases.

    • @TYNEPUNK
      @TYNEPUNK Před 2 měsíci

      @@IAmTimCoreyit forced me to pay to have a db. looks like im stuck on 13usd/month, i can drop it once i transfer site to client.

  • @homelessrogue
    @homelessrogue Před rokem +1

    9:49 No it is not ;)

    • @IAmTimCorey
      @IAmTimCorey  Před rokem

      I held onto it just in case I wanted to add to it.

  • @salmanahmad2532
    @salmanahmad2532 Před rokem

    Hi Tim, I think you have a very bad support team. I have been emailing them since 5 May and I am not getting any relevant response.

    • @IAmTimCorey
      @IAmTimCorey  Před rokem +2

      That’s not true. You’ve been getting great support. You just aren’t listening to him. He told you how to do a password reset. He told you how to confirm the email address you used. You gave him bad info, saying you used a specific email address instead of doing the work of actually checking. Last night you emailed and said you used the wrong email address, proving he was right. But even then, you didn’t supply which email address you used. You never provided an order number or the email you used to make the purchase.
      To make matters worse, you also submitted multiple help tickets and tried to circumvent the system by emailing me directly and posting on CZcams. You made a lot of extra work for us, but you couldn’t be bothered to actually give us the information we asked for or check to be sure the information you gave us was correct. Please stop trying to get around the system and instead just follow our instructions.
      To be clear, my “support team” consists of one person doing this as part of his duties during work hours on weekdays. You aren’t going to get a response right away every time. Just be patient. He will get back to you. It really helps if you give him all the information the first time, though.

    • @salmanahmad2532
      @salmanahmad2532 Před 11 měsíci

      Hi Tim, You are great and your services are also great. Customer Support is also great. you are man of words sir.Salute to you.Extremely sorry for bothering you here regarding Pass subscriptions. Thanks again Man.

    • @unkn0wnrge189
      @unkn0wnrge189 Před 2 měsíci

      hahahaha if It was for me that harsh truth I would feel soo much shame I would delete my profile and hide behind the bed.