-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (32 loc) · 1.13 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
# 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@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x
- name: Restore dependencies
run: dotnet restore ./AudioRezkaApp/AudioRezkaApp.sln
- name: Build
run: dotnet build ./AudioRezkaApp/AudioRezkaApp.sln --no-restore
- name: Test
run: dotnet test ./AudioRezkaApp/AudioRezkaApp.sln --no-build --verbosity normal
- name: Publish
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" -p:DebugType=None
- name: Deploy Win64
uses: actions/upload-artifact@v3
with:
name: win64
path: ./out/win64/
retention-days: 90