-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (48 loc) · 2 KB
/
dotnet-desktop.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
name: .NET
on:
push:
branches: [ "main" ]
pull_request:
types: [opened, reopened, edited]
jobs:
build-publish-deploy-win:
runs-on: windows-2019
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Restore dependencies
run: dotnet restore ./AudioRezkaApp/AudioRezkaApp.sln
- name: Build
run: dotnet build ./AudioRezkaApp/AudioRezkaApp.sln --configuration Release --no-restore
- name: Publish single file & self-contained
run: |
dotnet publish "./AudioRezkaApp\AudioRezkaApp/AudioRezkaApp.csproj" -c PublishRelease -r win-x64 -f net8.0-windows -p:PublishSingleFile=true --self-contained true -o "./out/win64_sfsc" -p:DebugType=None
- name: Publish self-contained
run: |
dotnet publish "./AudioRezkaApp\AudioRezkaApp/AudioRezkaApp.csproj" -c PublishRelease -r win-x64 -f net8.0-windows -p:PublishSingleFile=false --self-contained true -o "./out/win64_sc" -p:DebugType=None
- name: Publish single file
run: |
dotnet publish "./AudioRezkaApp\AudioRezkaApp/AudioRezkaApp.csproj" -c PublishRelease -r win-x64 -f net8.0-windows -p:PublishSingleFile=true --self-contained false -o "./out/win64_sf" -p:DebugType=None
- name: Deploy Win64 single file & self-contained
uses: actions/upload-artifact@v4
with:
name: AudioRezkaApp-win64_sfsc
path: ./out/win64_sfsc/
retention-days: 90
- name: Deploy Win64 self-contained
uses: actions/upload-artifact@v4
with:
name: AudioRezkaApp-win64_sc
path: ./out/win64_sfsc/
retention-days: 90
- name: Deploy Win64 single file
uses: actions/upload-artifact@v4
with:
name: AudioRezkaApp-win64_sf
path: ./out/win64_sfsc/
retention-days: 90