-
Notifications
You must be signed in to change notification settings - Fork 4
52 lines (40 loc) · 1.52 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
name: Build
on:
workflow_dispatch:
jobs:
build:
strategy:
matrix:
configuration: [Release]
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
# Install the .NET Core workload
- name: Install .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.x
# Restore the application to populate the obj folder with RuntimeIdentifiers
- name: Restore the application
run: dotnet restore
- name: Create Linux artifact
run: dotent publish --configuration ${{ matrix.configuration }} --runtime linux-x64 --self-contained false -p:PublishReadyToRun=false Seed --output Publish/Linux -p:DebugType=None -p:DebugSymbols=false
- name: Zip Linux artifact
run: Compress-Archive -Path Publish/Linux -DestinationPath Publish/Linux.zip
- name: Upload Linux build artifacts
uses: actions/upload-artifact@v3
with:
name: Linux
path: Publish/Linux.zip
- name: Create Windows artifact
run: dotent publish --configuration ${{ matrix.configuration }} --runtime win-x64 --self-contained false -p:PublishReadyToRun=false Seed --output Publish/Windows -p:DebugType=None -p:DebugSymbols=false
- name: Zip Windows artifact
run: Compress-Archive -Path Publish/Windows -DestinationPath Publish/Windows.zip
- name: Upload Windows build artifacts
uses: actions/upload-artifact@v3
with:
name: Windows
path: Publish/Windows.zip