Skip to content

Commit cbd149c

Browse files
committed
ci: add compile-only workflow for dev branch pushes
dev pushes only verify the solution restores and builds. Skips MSI packaging and Release creation — those stay on release.yml which triggers on main pushes.
1 parent a3bf623 commit cbd149c

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: CI (dev)
2+
3+
# 觸發時機:push 到 dev 分支(純編譯驗證,不建 MSI、不發 Release)
4+
on:
5+
push:
6+
branches:
7+
- dev
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
build:
14+
runs-on: windows-latest
15+
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v4
19+
20+
- name: Setup .NET 8
21+
uses: actions/setup-dotnet@v4
22+
with:
23+
dotnet-version: '8.0.x'
24+
25+
- name: Restore
26+
run: dotnet restore Tender.slnx
27+
28+
- name: Build
29+
run: dotnet build Tender.slnx --no-restore -c Release --nologo

0 commit comments

Comments
 (0)