-
Notifications
You must be signed in to change notification settings - Fork 10
44 lines (35 loc) · 924 Bytes
/
dotnet.yml
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
37
38
39
40
41
42
43
44
name: .NET Build
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: windows-latest
timeout-minutes: 15
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Build
run: dotnet build -c Release
- name: Pack
run: dotnet pack -c Release --no-build -o nupkg
- name: Publish
run: dotnet publish -p:PublishSingleFile=true -r win-x64 -f net8.0-windows -c Release --self-contained false ImageViewer\ImageViewer.csproj -o dist
- name: Upload
uses: actions/upload-artifact@v4
with:
name: All NuGet packages
path: nupkg
- name: Upload
uses: actions/upload-artifact@v4
with:
name: All app executables
path: dist