Skip to content

Commit ccc4e8a

Browse files
committed
Add a CI/CD build pipeline
1 parent 0365c13 commit ccc4e8a

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/build.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- dev
8+
pull_request:
9+
branches:
10+
- main
11+
- dev
12+
workflow_dispatch:
13+
14+
concurrency:
15+
group: ${{ github.workflow }}-${{ github.ref }}
16+
cancel-in-progress: true
17+
18+
jobs:
19+
build:
20+
runs-on: windows-latest
21+
22+
steps:
23+
- name: Checkout code
24+
uses: actions/checkout@v6
25+
26+
- name: Setup .NET
27+
uses: actions/setup-dotnet@v5
28+
with:
29+
dotnet-version: '9.0.x'
30+
31+
- name: Restore dependencies
32+
run: dotnet restore "Simple QR Code Maker.sln"
33+
34+
- name: Build solution
35+
run: dotnet build "Simple QR Code Maker.sln" --configuration Release --no-restore

0 commit comments

Comments
 (0)