ASP.Net - Build Only

Action file #


name: Build Project
on: push

 build-project:
   name: Build Project
   runs-on: ubuntu-latest
   steps:
     - name: Checkout the code
       uses: actions/checkout@v3

     - name: Setup .NET SDK
       uses: actions/setup-dotnet@v3
       with:
         dotnet-version: 6.0.x

     - name: Restore dependencies
       run: dotnet restore

     - name: Build the project
       run: dotnet build --no-restore