-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (38 loc) · 1.14 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
name: Build WinUI 3 Application
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: windows-latest
steps:
# 1. Checkout the code
- name: Checkout Code
uses: actions/checkout@v3
# 2. Setup .NET SDK
- name: Setup .NET SDK
uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.x'
# 3. Install NuGet CLI
- name: Install NuGet CLI
uses: NuGet/setup-nuget@v1
# 4. Restore NuGet packages for the specific project
- name: Restore NuGet Packages
run: dotnet restore TubeSync/TubeSync.csproj
# 5. Build the specific WinUI 3 project with the platform specified x64
- name: Build Solution
run: dotnet build TubeSync/TubeSync.csproj --configuration Release -r win-x64
# 6. Package the app into MSIX for the platform
- name: Package MSIX
run: dotnet publish TubeSync/TubeSync.csproj --configuration Release -r win-x64 -o publish
# 7. Upload MSIX to Articraft
- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: msix-package
path: publish/**