Skip to content

Commit beb66b6

Browse files
Create main.yml
1 parent ece08c9 commit beb66b6

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/main.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: .NET Build
2+
3+
on:
4+
push:
5+
branches: ["*"] # Runs on any branch push
6+
pull_request:
7+
branches: [master] # Runs on PRs to master
8+
9+
jobs:
10+
build:
11+
name: ChsarpUpdation
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
# Checkout repository
16+
- name: Checkout code
17+
uses: actions/checkout@v4
18+
19+
# Setup .NET (update version if your project uses different .NET version)
20+
- name: Setup .NET
21+
uses: actions/setup-dotnet@v4
22+
with:
23+
dotnet-version: '8.0.x'
24+
25+
# Restore dependencies
26+
- name: Restore dependencies
27+
run: dotnet restore
28+
29+
# Build project
30+
- name: Build
31+
run: dotnet build --no-restore --configuration Release
32+
33+
34+
35+

0 commit comments

Comments
 (0)