-
Notifications
You must be signed in to change notification settings - Fork 3
38 lines (27 loc) · 930 Bytes
/
build.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
name: Build
on:
push:
pull_request:
jobs:
build-and-upload:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET Framework
uses: actions/setup-dotnet@v4
with:
dotnet-version: '6.0.x'
- name: Add MSBuild to PATH
uses: microsoft/[email protected]
- name: Build
run: msbuild "./Desktop Notes/Desktop Notes/Desktop Notes.csproj" /p:Configuration=Release /p:Platform="AnyCPU"
shell: powershell
- name: Create installer
run: |
dotnet tool install --global wix --version 4.0.5
wix build Product.wxs -o "./Desktop Notes/Desktop Notes/bin/Release/Desktop_Notes.msi"
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: release-artifacts
path: "Desktop Notes/Desktop Notes/bin/Release/**"