DevOps Classroom notes 23/Mar/2026

Github Actions Yaml reference

Github actions steps or actions

  • in github actions step is a low level command and steps can be made reusable with actions Refer Here

I want to build a dotnet application

  • This dotnet application will require
    • dotnet sdk to build
    • dotnet runtime to run
  • The project is Refer Here
  • Dotnet largely has two flavors
    • Dotnet
    • Dotnet core
  • This project requires dotnet core 10
  • dotnet build process
    • dotnet has build (compile) and publish (ensure all artifcats are at one location)
    • configuration:
      • Debug
      • Release
  • Steps
    • clone the project git clone https://github.com/Azure-Samples/dotnetcore-docs-hello-world.git
    • Install dotnet core 10 on ubuntu 24.04 Search for Installing dotnet core sdk 10.0 on ubuntu and give me sources
    • dotnet build –configuration Release
    • dotnet publish –configuration Release -o
  • steps
git clone https://github.com/Azure-Samples/dotnetcore-docs-hello-world.git
cd dotnetcore-docs-hello-world/
dotnet build --configuration Release dotnetcoresample.csproj
# tests are missing
dotnet publish --configuration Release -o ./published/ dotnetcoresample.csproj
tar -cvzf dotnetcoresample.tar.gz ./published/
  • How can i do this in github actions
  • Create a new folder .github/workflows
  • Create a file with anyname with extension .yml or .yaml
build.yml
  • Now we need to understand options, configure runner and write steps.
Published
Categorized as Uncategorized Tagged

By continuous learner

devops & cloud enthusiastic learner

Leave a comment

Turn on JavaScript to leave a comment.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Please turn AdBlock off
Social Media Icons Powered by Acurax Web Design Company
Exit mobile version
%%footer%%