Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,14 @@ name: ASP.NET Core 8 API CI/CD
on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
build: # Fisrt we we will setup only build job
runs-on: ubuntu-latest # <-- OS to run the job
env: # Environment variables
SOLUTION_PATH: SimpleApi-CICD/SimpleAPI/SimpleAPI.sln #// Path to the solution file

steps:
- name: Checkout-code # Step 1: Checkout the code from repository
Expand All @@ -17,9 +21,9 @@ jobs:
dotnet-version: '8.0.x' # Specify the .NET version to install

- name: Restore dependencies # Step 3: Restore the dependencies
run: dotnet restore
run: dotnet restore $SOLUTION_PATH

- name: Build solution # Step 4: Build the solution
run: dotnet build --no-restore --configuration Release
run: dotnet build $SOLUTION_PATH --no-restore --configuration Release


Loading