-
Notifications
You must be signed in to change notification settings - Fork 26
36 lines (28 loc) · 805 Bytes
/
Copy pathbuild.yml
File metadata and controls
36 lines (28 loc) · 805 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup .NET 8
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
- name: Restore
run: dotnet restore
- name: Build (Release)
run: dotnet build --configuration Release --no-restore
- name: Publish (win-x64, single file)
run: dotnet publish WinLens.csproj -c Release -r win-x64 --self-contained false -p:PublishSingleFile=true -o publish
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: WinLens-win-x64
path: publish/WinLens.exe